Re: [directory-upload] The spec should define integration with FormData (#14)

On further reflection I don't think adding Directory objects directly to FormData objects should be supported. Directory objects have an unknown number of files under them, and blindly adding all files makes it likely that limits imposed on the number of files in a submission will be exceeded. (Browsers impose limits, as do servers - see for example Apache's max_file_uploads configuration option.) It seems better to force script to walk a Directory tree and FormData.append() files one at a time so that content is encourage to upload controlled numbers of files in batches.

---
Reply to this email directly or view it on GitHub:
https://github.com/WICG/directory-upload/issues/14#issuecomment-143540366

Received on Sunday, 27 September 2015 10:30:19 UTC