File drag & drop

Atto ::: atto_filedragdrop
Maintained by Paul Nicholls
An Atto plugin which adds drag and drop support for files which aren't images.
Latest release:
388 sites
29 fans
Current versions available: 1

Build status


This plugin for Moodle's Atto WYSIWYG editor lets you drag any file into Atto - from documents to videos - in order to upload them into Moodle and add a link to the file within the Atto content.

If you are using Moodle's media filters, any supported multimedia files will display inline via the filter once published.


This plugin does not add a toolbar button or any other visible UI to Atto - it simply detects files dragged and dropped into Atto, automatically uploading them to Moodle.  It does still need to be in your Atto toolbar configuration in order to work, though in most cases this should happen automatically as part of the installation process.


  1. Make sure you're running Moodle 2.7 or later
  2. Download and unpack the module, renaming the folder to "filedragdrop" if necessary
  3. Place the "filedragdrop" folder in the "lib/editor/atto/plugins" subdirectory of your Moodle installation
  4. Visit to finish installation of the plugin
  5. Go to your Site administration ► Plugins ► Text editors ► Atto HTML editor ► Atto toolbar settings
  6. Add "filedragdrop" somewhere in the toolbar configuration

If you're running Moodle 2.9.2 or earlier, you'll need to make sure to include "filedragdrop" before the standard "image" plugin in your Atto toolbar configuration, due to a bug which resulted in the image plugin handling but ignoring non-image files. This bug was fixed in Moodle 2.9.3 and 3.0.


Paul Nicholls (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Thu, Jan 28, 2016, 2:49 PM
    Prechecker results: 1 errors/0 warnings

    Please consider adding a screenshot of your plugin to help folks get an idea of what it looks like when installed.
  • Thu, Jan 28, 2016, 3:21 PM

    Thanks Paul for yet another plugin shared with the Moodle community. I was able to successfully test the functionality and did not spot any problems with the code. I am happy to approve this now. You are cleared to land, welcome to the Plugins directory!

  • Thu, Jan 28, 2016, 9:12 PM
    Just tried this out...Awesome work my friend! Thank you for your efforts. This is a great tool for Atto. You just made a whole lot of teachers happy.
  • Just wondering . . .
    Thu, Feb 4, 2016, 10:50 AM
    Paul, looks good.
    I have just got around to installing it.
    Two things, a new suggestion and a feature creep:
    1) is it easy to create a plugin to get a video onto a section, just like you can frag and drop a word file?
    2) for the ATTO plugin, is it easy to add a upload progress bar?

  • Fri, Aug 26, 2016, 10:56 PM
    This is great, thank you.
  • Wed, May 3, 2017, 9:48 PM
    Hi Paul, Have you plans to update this for 3.1?
    Thanks, Catherine
  • Wed, Sep 13, 2017, 11:29 PM
    Hi Paul,

    If I am running Moodle 3.3 with your Atto FileDragDrop installed and I drop a file into the Atto Editor window should I end up in one of the javascript files found in this folder:


    And if I am not, what might be the reason? Improper configuration for this plugin? Or does nothing need to be added to the Toolbar settings for Moodle 3.3?

    Thanks for any advice you can provide.


  • Mon, Jan 29, 2018, 4:26 PM
    Kläder om du har någonsin velat ha en samlad bild av de grundläggande mäns tillbehör och sedan läsa vidare. Denna artikel kommer att ge dig en liten uppdeln,Kläder,ing och en riktlinje för vad som är bäst för dig, och vilka som inte ska gå på en utekväll på stan med dig. Första off-ringar. Dina händer nästan allt,Jeans dam,id är synliga. De kommer att omfattas av handskar när vintern kommer eller om du åker motorcykel, men *endast* medan du är utomhus. Lång hylsa tees, t,Kappor dam,röjor, jackor etc. kommer lämna alltid händerna i. Och dödade i damtidningarna skriva artiklar om "vad hans händer säger om honom" eller "han håller i sin dryck berättar hur han kommer hålla dig" har kvinnor som tar mycket tid och stirrar eller inspekterar dina händer. Bär ringar ger händerna lite mer smak och elegan
  • Wed, Sep 19, 2018, 8:08 PM

    I have installed the plugin and configured it properly in the Atto HTML Editor settings (adding the "filedragdrop" line in the toolbar). The Atto HTML Editor is set as the main editor so everything seems okay, still, I have been trying to drag and drop a PDF file within a WYSIWYG field (inside a questionnaire) and it did not work. Any idea what is going wrong ?

    Thanks for helping,

  • Fri, Feb 8, 2019, 12:01 AM
    I use this plugin, It does just what I expected. I use this for my site on Verona.
  • Mon, Feb 11, 2019, 12:29 AM
    I have some problems with cyrillic encoding:
  • Fri, Apr 12, 2019, 10:34 PM
    Hello, can you tell us if the plugin will support version 3.6 of Moodle in a near future ?
  • Tue, Dec 15, 2020, 10:32 PM
    That is great, i hope you can visit and good luck.
Please login to post comments