/// <summary> /// Constructor. /// </summary> /// <param name="fileKey">The name of the form element. Defaults to "file".</param> /// <param name="fileName">The file name to use when saving the file on the server. Defaults to "image.jpg".</param> /// <param name="mimeType">The mime type of the data to upload. Defaults to "image/jpeg".</param> /// <param name="parameters">A set of optional key/value pairs to pass in the HTTP request.</param> /// <param name="headers">A map of header name/header values. Use an array to specify more than one value.</param> /// <param name="httpMethod">"PUT" or "POST"</param> public FileUploadOptions(JsString fileKey = null, JsString fileName = null, JsString mimeType = null, JsObject parameters = null, JsObject headers = null, FileUploadMethod httpMethod = FileUploadMethod.Post) { }
/// <summary> /// Constructor. /// </summary> /// <param name="fileKey">The name of the form element. Defaults to "file".</param> /// <param name="fileName">The file name to use when saving the file on the server. Defaults to "image.jpg".</param> /// <param name="mimeType">The mime type of the data to upload. Defaults to "image/jpeg".</param> /// <param name="parameters">A set of optional key/value pairs to pass in the HTTP request.</param> /// <param name="headers">A map of header name/header values. Use an array to specify more than one value.</param> /// <param name="httpMethod">"PUT" or "POST"</param> public FileUploadOptions(JsString fileKey = null, JsString fileName = null, JsString mimeType = null, JsObject parameters = null, JsObject headers = null, FileUploadMethod httpMethod = FileUploadMethod.Post) { }