Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Talk:Course drag and drop upload

From MoodleDocs

Note: i'm a little out of touch with the mod/ api, so this may not make mod-type sense.

I think I agree with the basic principle of the design, but rather than '[modname]_dndupload_register' which receives dndupload_handler object, I would go for something of something a bit like the repository API with something like a static '[modname]_supports_dndupload' function which returns which types it supports.

I'm not clear on what can be done with non-file types of drag/drop. Can you give some examples of this? --Dan Poltawski 00:21, 20 January 2012 (WST)

If you want to see what non file types can do, try installing my block. Basically, dragging a URL (from the address bar or from a page) can create a link resource, dragging a selected block of text can create a page resource ... Maybe other people can come up with further examples--David Smith 2 00:34, 20 January 2012 (WST)