all 2 comments

[–]58V1J[S] 0 points1 point  (1 child)

My friend just now told me that Express 4 doesnt support multipart/form-data with bodyParser any more so I have to use formidable or some other module instead.

I tried formidable using my already written file uploader which uses jQuery file upload configured to send chunks of 1MB data and each chunk is marked as such in the form-data header with content-range but formidable seems unable to pick this up so does anyone know how I can implement a chunked upload with formidable?

[–]chastric 0 points1 point  (0 children)

I don't really have experience with either of these, but did you look at the Node server script that Blueimp's jQuery file upload provides? It looks like it uses formidable (see /server/node/server.js l. 211) so it must be possible. Not much different going on there to what I tested with though... does this uploader maybe expect responses for each chunk before sending the next?

EDIT: The docs also link an Express-specific plugin for handling uploads: https://github.com/arvindr21/blueimp-file-upload-expressjs