Skip to content

remix/headers/content-disposition · Interface

View Source

ContentDispositionInit

Summary

Initializer for a Content-Disposition header value.

Signature

interface ContentDispositionInit {
  filename?: string
  filenameSplat?: string
  name?: string
  type?: string
}

Properties

filename

The suggested filename for the content. Values received from clients are untrusted metadata and must not be used directly as filesystem paths.

filenameSplat

The suggested filename encoded as an RFC 8187 filename* parameter. Values received from clients are untrusted metadata, even after decoding, and must not be used directly as filesystem paths.

name

For multipart/form-data requests, the name of the <input> field associated with this content.

type

The disposition type of the content, such as attachment or inline.