views:

94

answers:

2

Can anybody tell me how i can upload multiple files with size restriction in javascript.

+4  A: 

You can't.

You would need to use an alternative, e.g. a Flash-based uploader like SWFUpload.

Pekka
+2  A: 
T.J. Crowder
+1 for expanding on the issue. (Although I think that by multiple files, manisha meant multiple at once.)
Pekka
@Pekka: If you have multiple file inputs, they all get uploaded at the same time. There's also the new(ish) `multiple` attribute, I've added a note about that above. (It's too bad they didn't consider using `maxlength` to suggest file size limits to UAs, but apparently not.)
T.J. Crowder