pgaertig / nginx-big-upload

Resumable and reliable file uploads of any size. Nginx extension written in Lua.
https://github.com/pgaertig/nginx-big-upload
Other
192 stars 49 forks source link

Multiple File Upload #5

Closed e1ven closed 11 years ago

e1ven commented 11 years ago

Thanks for working on this!

I wanted to know if you had any plans to add support for HTML5 multiple file upload. There's a page describing it at http://css.dzone.com/articles/working-html5s-multiple-file The Spec is at http://www.w3.org/TR/html-markup/input.file.html

The short version is it lets users add multiple files to a single upload, which is rather convenient. I had talked with the nginx-upload-module author about adding them, but he seems to have lost interest in the project.

In any event, thanks for building this. -CPD

Dexus commented 11 years ago

You can do it bye your self. You only need to work with each array item of "files[]". Therefore you need to make little changes on the example code.

pgaertig commented 11 years ago

Multiple file uploads work both in nginx-upload-module and here. This is actually client side solution which sends multiple files as if page had multiple input tags with same name instead of one. In case of nginx-big-upload you need to get list of files from input tag and send them individually with XHR and POST/PUT. Contributions are welcome to the example code.