Blocks: Drag and drop file upload

Maintained by DavoDavo Smith
Drag and drop one or more files directly from your desktop into a Moodle course - if you have Moodle 2.3 or above, this functionality is already present

Drag and drop file upload 2011072200

Release notes

==Drag and drop upload block==

Once installed on a course, this block allows you to drag and drop files directly from your desktop onto a course and have them appear as resouces on that course.

This block only works in Moodle 2.0 and above.
It has been tested with Firefox 5, Chromium 14 and Chrome 12 (all running on Ubunutu 11.04). It has no chance of working in IE, so don't bother trying (it may start working with IE10 or later, depending on MS implementing some key features of HTML 5).
It has only been tested with the 'Topic' course format.


1. Unzip the files to a suitable location on your local machine
2. Create a new folder on the server /blocks/dndupload
3. Upload the files you unzipped to this new folder on your server
4. Login as administrator and click on 'Notifications'
5. Add the block to a course in the usual way
6. Turn editing on (in the usual way) - the block does not show if editing is off
7. Select a few files from your desktop and drag them onto a course section

==Known issues==

* Does not work in all browsers (IE, older FF/Chrome)
* No easy way to delete all the files, if you accidentally upload too many files (you have to delete them one-by-one)
* Moving resources that you have just uploaded around has slight sorting issues with other files you have just uploaded (if it is a problem, refresh the page)


Thanks to the following websites, that were invaluable in the creation of this block:
(and, as always, !)

Special thanks to The University of St Andrews, for sharing some code to put some of the final polish on the operation of the block.


Any problems / questions please contact:
Moodle 2.0, 2.1

Version information

Version build number
Can be updated to
2011101600, 2.x (Build: 2011121500) (2011121500)
Stable version
MD5 Sum
Supported software
Moodle 2.1, Moodle 2.0

Version control information

Version control system (VCS)
VCS repository URL
VCS branch

Default installation instructions for plugins of the type Blocks

  1. Make sure you have all the required versions.
  2. Download and unpack the block folder.
  3. Place the folder (eg "myblock") in the "blocks" subdirectory.
  4. Visit to complete the installation
  5. Turn editing on in any home or course page.
  6. Add the block to the page
  7. Visit the config link in the block for more options.