danialfarid / ng-file-upload

Lightweight Angular directive to upload files with optional FileAPI shim for cross browser support
MIT License
7.87k stars 1.59k forks source link

Chunked upload with HTML5 multiple file upload #1643

Open salvois opened 8 years ago

salvois commented 8 years ago

Greetings, I have a basic upload page configured for HTML5 multiple file upload, and a PHP endpoint to receive the files. To not overstress server memory and keep a load max_upload_size, I've opted to use resumeChunkSize. Everything seems fine for files smaller than resumeChunkSize or for single bigger files. When uploading multiple files larger than resumeChunkSize, on the first run the endpoint receives the first chunk of every selected file, but the POST vars appear to refer to the first file only. I see two problems with this: not being able to track the partial upload of subsequent files, and possibly exceeding the max_upload_size of my endpoint even when chunked upload is used. Please let me know whether this is by design and what would be the proper way to cope with this scenario. Thank you, Salvo

danialfarid commented 8 years ago

Could you post your code? What do you mean refer to the first file only?