FileUploadOptions

A FileUploadOptions object can be passed to the [FileTransfer](../filetransfer/filetransfer.html) object's upload() method to specify additional parameters to the upload script.

Properties

  • fileKey: The name of the form element. Defaults to file. (DOMString)

  • fileName: The file name to use when saving the file on the server. Defaults to image.jpg. (DOMString)

  • mimeType: The mime type of the data to upload. Defaults to image/jpeg. (DOMString)

  • params: A set of optional key/value pairs to pass in the HTTP request. (Object)

  • chunkedMode: Whether to upload the data in chunked streaming mode. Defaults to true. (Boolean)

  • headers: A map of header name/header values. Use an array to specify more than one value. (Object)

Description

A FileUploadOptions object can be passed to the [FileTransfer](../filetransfer/filetransfer.html) object's upload() method to specify additional parameters to the upload script.

WP7 Quirk

  • chunkedMode:: Ignored on WP7.