Sets the parameter of a MIME Content-Disposition header found in stream s.
FlowForce Server Advanced Edition: This function is useful when you send AS2 messages with the optional AS2 profile FileName preservation (FN). See also the get-mime-content-disposition-param function for reading the file name.
set-mime-content-disposition(s as stream, disposition as string, filename as string="") -> string |
Name |
Type |
Description |
|---|---|---|
s |
stream |
Specifies an input string. |
disposition |
string |
Specifies the disposition value of the Content-Disposition header. |
filename |
string |
Specifies the filename value of the Content-Disposition header. By default, this is an empty string. |
The following expression sets the Content-Disposition header as follows: set-mime-content-disposition(msg, "attachment", "GETMSG.edi"). You can use the set-mime-content-disposition function to make a file downloadable.