I use Flex 4 wish I can let users drag/drop photos from their computer to the web app to upload them automatically.
Share
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 answer to this used to be simply, No – it’s not possible.
However, with HTML5’s File API and drag & drop browser integration, it’s more feasible.
This article gives a good overview of how HTML drag & drop works. If you just want to add drag & drop support for file uploads, that could be as far as you need to go — ie., do the upload in HTML, and once it’s complete, let Flex know by calling into it use ExternalInterface.
However, if you were feeling more adventurous, once you have the file in the browser, you would be able to pass it through to the flex app through an ExternalInterface call, and use the contents within the app. (Eg., by displaying an image).
It’s worth nothing that this is an HTML5 solution, and support for the File API & drag’n’drop varies between browsers.