Moodle Plugins directory: File drag & drop | Moodle.org
File drag & drop
Description
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.
NOTE:
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.
Installation
- Make sure you're running Moodle 2.7 or later
- Download and unpack the module, renaming the folder to "filedragdrop" if necessary
- Place the "filedragdrop" folder in the "lib/editor/atto/plugins" subdirectory of your Moodle installation
- Visit http://yoursite.com/admin to finish installation of the plugin
- Go to your Site administration ► Plugins ► Text editors ► Atto HTML editor ► Atto toolbar settings
- Add "filedragdrop" somewhere in the toolbar configuration
NOTE:
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.
http://integration.moodle.org/job/Precheck%20remote%20branch/20321/artifact/work/smurf.html
Please consider adding a screenshot of your plugin to help folks get an idea of what it looks like when installed.
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!
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?
-Derek
Thanks, Catherine
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:
editor/atto/plugins/filedragdrop/yui/build/moodle-atto_filedragdrop-button/
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.
Cheers!!
..scoTT
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,
Best,
Yannick
http://piccy.info/view3/12960502/0617cb3e21f94404cf4b6bccde9e32c3/