async.useArrayBuffer Boolean
(default: false)
By default, the files are uploaded as file data. When set to true
, the files are read as a file buffer by using FileReader. This buffer is sent in the request body.
The
FileReader
consumes the memory of the browser. As a result, if the user uploads a large file, then all the available memory of the client might be consumed and the upload might fail.
Example
<input type="file" name="files" id="photos" />
<script>
$("#photos").kendoUpload({
async: {
saveUrl: "http://my-app.localhost/save",
removeUrl: "http://my-app.localhost/remove",
useArrayBuffer: true
}
});
</script>