Monday, May 13, 2024
 Popular · Latest · Hot · Upcoming
16
rated 0 times [  17] [ 1]  / answers: 1 / hits: 22850  / 13 Years ago, fri, april 1, 2011, 12:00:00

I would like to upload a file using JQuery-File-Upload, but using HTTP PUT instead of multipart-forms. According to their site:



- Multipart and file contents stream uploads:
Files can be uploaded as standard multipart/form-data or file contents stream (HTTP PUT file upload).


but I cannot find anywhere in their documentation as to how to do this. Can anyone help?


More From » jquery

 Answers
8

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'
});

[#92957] Thursday, March 31, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
loric

Total Points: 110
Total Questions: 96
Total Answers: 91

Location: Estonia
Member since Wed, Jun 8, 2022
2 Years ago
;