file upload via drag and drop

前端 未结 3 1543
死守一世寂寞
死守一世寂寞 2021-01-14 07:33

Ok here is my problem.
I need to be able to have a user drag multiple images from the locate file system onto the flash/flex/html5 app which will then taker the file na

相关标签:
3条回答
  • 2021-01-14 08:05

    Not possible with a web app in flash/flex - but you can do it inside air. It's basically a security issue.

    As far as HTML5 - Only Firefox and Chrome currently support HTML5 native drag and drop events that I'm aware (Chrome would include some other webkit variants like safari)

    0 讨论(0)
  • 2021-01-14 08:13

    Try this http://www.plupload.com/ It include all kinds of uploaded flash,silver light, gear, html 5 and html4.

    As other people mention that drag and drop will not work for all browser. Limitation listed below.

    1. Drag/drop support of files is currently only available in Firefox 3.5+. WebKit/Opera doesn't support this feature yet.
    2. Image resizing is only possible on Firefox 3.5+ and only at a fixed quality. WebKit/Opera doesn't support direct data access to the selected files.
    3. File type filtering is currently not supported by any browser. But we fill the HTML 5 accept attribute so once the support is there it will work.
    4. Multipart upload is only supported in Gecko based browsers. WebKit doesn't support direct access to file data.

    If you are interseted in Applet try this.. http://jumploader.com/ Both control allow you to resize on client ( I know you haven't requested that)

    0 讨论(0)
  • 2021-01-14 08:26

    For HTML5, see this great tutorial (browser coverage included): http://www.thebuzzmedia.com/html5-drag-and-drop-and-file-api-tutorial

    0 讨论(0)
提交回复
热议问题