blueimp/jQuery-File-Upload — Issue #701: Programmatic file uploads for browsers without support for XHR file uploads
Author: jevado
Created: 2011-10-13 19:59:55+00:00
State: open

Hi Sebastian,

I have a simple question about programmatic file uploads which I can't seem to just figure out by reading the documentation and experimenting. ( https://github.com/blueimp/jQuery-File-Upload/wiki/API )

I have a working frontend and backend which can upload multiple files to S3, callbacks and all, it is all working. The reason why I would like to use programmatic uploads is because I want to upload chunks (cut up via the File Api) and treat the chunks as real files. This way I can simulate multipart upload directly to S3

To select a file I think I need an input outside the (working) form.
The javascript is like this http://www.html5rocks.com/en/tutorials/file/xhr2/#toc-example-slicingfiles only where there is "upload(chunk)" I do $('#fileupload').fileupload('add', {files: [chunk]})

According to the documentation I should add 'fileInput: fileInput'. If I leave it out the upload generates a 0 byte file. If I add it the posted Form and Formdata are empty, probably because the input is outside the working form. Pointing it to the working normal input doesn't work either.

I'm probably making some stupid mistake here. can you point me in the right direction ?

Kind regards,
Jeroen