Drag and drop file upload

Blocks ::: block_dndupload
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
Latest release:
48 sites
19 downloads
7 fans
Current versions available: 2

This Moodle 1.9 / 2.x block allows you to drag files directly from your desktop onto a Moodle course. It should not be installed on a Moodle 2.3 site as it will clash with the built-in drag and drop upload.

It works with recent versions of Mozilla Firefox and Google Chrome, but not with Microsoft Internet Explorer (IE version 10 should have the required functionality). It has been tested with Windows and Linux and should work anywhere that the above browsers run.

Installation

  1. Install the block in the usual way
  2. Add the block to a course in the usual way
  3. Turn editing on (in the usual way) - the block does not show if editing is off
  4. Select a few files from your desktop and drag them onto a course section
Note - if it is not working, please check to see if there is a message in the block; it should warn you if your browser does not support the upload, or if you have AJAX course editing switched off.
The most up-to-date version of this module can always be found at: https://github.com/davosmith/moodle-block_dndupload
(I will not always update the version on Moodle.org when there are changes)

Screenshots

Screenshot #0

Contributors

Davo
Davo Smith (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Chris Fryer
    Fri, 20 Jan 2012, 8:21 PM
    I got a similar error message. You need to ensure the block is installed in /blocks/dndupload, so rename moodle-block_dndupload to dndupload, and it should be fine.
  • rafa botello
    Thu, 9 Feb 2012, 12:16 AM
    i installed on moodle 2.2.1 and i used chrome, it's work, thanks smile
  • Jordi Lopez
    Sun, 4 Mar 2012, 7:21 PM
    Facing same problem as Sinisa, "obsolete" message blocking the plugin install.

    Then, made like Chris suggested. Now it's fine smile . Thanks
  • Frankie's the name, Moodle's my game!
    Fri, 23 Mar 2012, 12:55 PM
    I dragged and dropped a zero kilobyte Word file. The green circle went on and on and on. As though it was still uploading. I then refreshed my browser and the file's there! Why the never-ending green circling icon?
  • Frankie's the name, Moodle's my game!
    Fri, 23 Mar 2012, 12:55 PM
    Was using Chrome.
  • I Teach With Moodle
    Fri, 23 Mar 2012, 10:42 PM
    My all-time favourite Moodle plugin so far. Check out my review at http://www.iteachwithmoodle.com/2012/03/22/easy-file-management-for-moodle/
  • Davo
    Sat, 24 Mar 2012, 6:44 AM
    Frankie - not sure. Did the chrome dev tools show any error messages? If you look at the 'network' tab of the dev tools, when you upload the file, did any message appear there? Why were you trying to upload a 0 byte file in the first place?
  • not cusack
    Mon, 26 Mar 2012, 6:10 AM
    Davo, have you tried using the plugin with the 'collapsed weeks' course format? I've noticed that that seems to break the plugin...
  • Davo
    Mon, 26 Mar 2012, 2:24 PM
    I've not tried it with any formats other than topics and Weeks. It would be difficult to get it to work with course formats that generate differently organised output, especially if it then does lots of Javascript manipulation over the top. If I have time I'll try it out.
  • Drew Smith
    Fri, 18 May 2012, 3:12 AM
    Having an issue with my drag and drop block states, "AJAX course editing must be enabled for drag and drop upload to work." currently, it IS enabled, so I'm not quite sure what I'm missing. Using FF 12.0. Any thoughts would be appreciated. Thanks
  • Davo
    Fri, 18 May 2012, 6:19 PM
    @Drew - usually the issue is that AJAX is enabled at the site level, but disabled on a particular user's profile. Please confirm that you can drag and drop course activities to re-order them (rather than clicking once, waiting for the page to reload, then clicking again to set their new position).
  • Drew Smith
    Fri, 18 May 2012, 9:40 PM
    @davo - currently no - but would this have to do with using a particular theme? or should it be enabled no matter what the theme being used? i have admin rights, but cannot for the life of me figure out where to enable AJAX for myself. thoughts?
  • Davo
    Sat, 19 May 2012, 2:09 AM
    @Drew - in Moodle 2.x, site AJAX is enabled via: Site Admin > Appearance > AJAX and Javascript; tick both 'AJAX' options. Per-user AJAX is found by clicking on a user's name (yours is on the top-right of the screen), then clicking 'edit profile' (in the settings block, usually on the left), then setting 'AJAX and Javascript' to 'Yes: use advanced features'.
    For Moodle 1.9 the options are similar, but some of the menu items have slightly different names.
  • Drew Smith
    Tue, 22 May 2012, 1:24 AM
    Got it - thank you! Definitely digging this feature. smile
  • Darcy Christ
    Mon, 28 May 2012, 4:05 PM
    We are planning on upgrading to 2.3 in July, as well as adding this plugin. It sounds like we should not include this plugin based upon the statement above: "It should not be installed on a Moodle 2.3 site as it will clash with the built-in drag and drop upload." How should one think about this block in reference to 2.3? This is not clear to me
Please login to post comments