RFC 2045 standard. "> API Docs - Object : ContentDisposition

Object - mime : ContentDisposition

Represents values in Content-Disposition header.

Methods

Converts the ContentDisposition type to a string suitable to use as the value of a corresponding MIME header.

Fields

  • fileName string
  • Default filename for storing the body part if the receiving agent wishes to store it in an external file

  • disposition string
  • Indicates how the body part should be presented (inline, attachment, or as form-data)

  • name string
  • Represents the field name in case of multipart/form-data

  • parameters map (default {})
  • A set of parameters specified in the attribute=value notation

toString

()

returns string

Converts the ContentDisposition type to a string suitable to use as the value of a corresponding MIME header.

 string contDisposition = contentDisposition.toString();
  • Return Type

    (string)
  • The string representation of the ContentDisposition object