I
I
igrishaev2011-09-17 10:43:03
JavaScript
igrishaev, 2011-09-17 10:43:03

Drag'n'Drop from OS to browser. How?

Hello.
I want to implement in my project the possibility of "throwing" files from the operating system into the browser. I would like it to be possible to check the file size, its MIME type and upload it to the server when uploading.
As far as I understand, this is possible using the File API, which is still in its infancy. There is very little information about this on the net, and half of the links found tell about the usual DnD on the page.
I ask those who have done something similar to share links and any information.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
K
korvindest, 2011-09-17
@korvindest

The very first thing I remember is uploading files to narod.yandex.ru, see how this function is implemented there.

P
Pavel Osipov, 2011-09-17
@Pavel_Osipov

Look here
safron.su/playground/damnUploader/

I
igrishaev, 2011-09-17
@igrishaev

Here is a very promising one:
github.com/weixiyen/jquery-filedrop

K
Kakysha, 2011-09-17
@kakysha

Well, everything is just right, pure JS and File API with examples, sources and comments: www.thebuzzmedia.com/html5-drag-and-drop-and-file-api-tutorial/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question