- Overview
- The Command-line Interface
- Platform Guides
- Configuration Reference
- Embedding WebViews
- Plugin Development Guide
- Privacy Guide
- Domain Whitelist Guide
- Accelerometer
- Camera
- Capture
- Compass
- Connection
- Contacts
- Device
- Events
- File
- Geolocation
- Globalization
- InAppBrowser
- Media
- Notification
- Splashscreen
- Storage
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.