23/resumable.js — pull request #17 by trilobyte (2012-09-27 07:53:15+00:00)
Title: support for single file uploading

Hi Steffen,

I have implemented the single file upload mode for resumable.js and updated the documentation as accordingly. The change should be backward compatible.

Unfortunately it was not possible to limit the number of files uploaded at the UI level since the `type="upload"` only allows multiple or not. See http://www.w3.org/TR/html-markup/input.file.html#input.file.attrs.multiple. We could however do this check in the `appendFilesFromFileList` method.

I was unsure on how to handle selecting a single file multiple times, so it is still possible to repeatedly select a single file. Could you advice on how to implement this check?

Other feedback is welcome as well.

Regards,
Bert