How to upload a file using an HTTP "PUT" using JQuery?

Solution 1:

According to : https://github.com/blueimp/jQuery-File-Upload/wiki/Options

method

The method of the HTTP request used to send the file(s) to the server. Can be POST (multipart/formdata file upload) or PUT (streaming file upload). Accepts a String or a function returning a String.

You should use :

$('#file_upload').fileUpload({
    namespace: 'file_upload_1',
    url: '/path/to/upload/handler.json',
    method: 'PUT'
});