blueimp/jQuery-File-Upload — Issue #958: Programmatic file upload with non multipart upload
Author: diansf
Created: 2012-01-18 02:54:15+00:00
State: open

Thank you for your awesome plugin! I am planning use this on my project.
I use Programmatic file upload to send the file manually, and also set the multipart to "false"

$('#imageUploader').fileupload({
dataType: 'json',
multipart:false,
sequentialUploads: true,
...
$('#fileupload').fileupload('send', {files: filesList});
//filesList is object with an array (or array-like list) of File or Blob objects as files property

I have a questions:
Sometimes the file transfer is not started (the ajax request is just waiting for whole time) but most of time is working (currently trying on Firefox 5), I wonder is this is related to header request. Why the request header still "image/*" even after i set the multipart option to "false", cause actually i want the request header set to be "application/octet-stream" and I choose not to set the header manually on "beforeSend" callback.

....
else if (!options.multipart) {
// Chunked non-multipart upload:
options.contentType = 'application/octet-stream';
options.data = options.blob;
}
...

I am kinda new in jQuery area, so pardon me if you already explained this on your documentation.
Please tell me if I'm missing something. Thank you very much for your help!