Class: FileUploadOptions

FileUploadOptions


new FileUploadOptions(fileKey, fileName, mimeType, params, headers)

Options to customize the HTTP request used to upload files.

Parameters:
Name Type Description
fileKey String

Name of file request parameter.

fileName String

Filename to be used by the server. Defaults to image.jpg.

mimeType String

Mimetype of the uploaded file. Defaults to image/jpeg.

params Object

Object with key: value params to send to the server.

headers Object

Keys are header names, values are header values. Multiple
headers of the same name are not supported.

Source: