Facebook has the ability to select multiple images in the file browser in its upload feature.
Can anyone explain how this is achieved?
I’d like to do something similar in jquery without the use of a flash widget.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The HTML5 File API enables you to do it natively. Basically you add the
multiple="multiple"attribute to the file upload control:Disadvantage: Only runs in modern browsers like Firefox, Chrome, Safari. IE, even version 9 does not support this multiple upload.
Otherwise, you have to rely on some Flash or Java upload component.
(Edit: Changed to
multiple="multiple", thanks to Ms2ger)