set-mime-content-disposition

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  Expression Functions > MIME Expression Functions >

set-mime-content-disposition

Sets the parameter of a MIME "Content-Disposition" header found in stream s.

 

Note for FlowForce Server Advanced Edition users: This function is useful when sending AS2 messages with the optional AS2 profile FileName preservation (FN). See also the function get-mime-content-disposition-param for reading the file name.

 

Signature

set-mime-content-disposition(s:stream, disposition:string, filename:string="") -> string

 

Parameters

Name

Type

Description

s

stream

Specifies the input stream.

disposition

string

The disposition value of the "Content-Disposition" header to set.

filename

string

The filename value of the "Content-Disposition" header to set. By default, this is an empty string.

 

Examples

The following expression sets the "Content-Disposition" header as follows: Content-Disposition: attachment; filename="GETMSG.edi":

 

set-mime-content-disposition(msg, "attachment", "GETMSG.edi") 


© 2019 Altova GmbH