Moodle Plugins directory: Drag and drop file upload | Moodle.org

Drag and drop file upload
Blocks ::: block_dndupload
Maintained by
Davo 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:
40 sites
20 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
- Install the block in the usual way
- Add the block to a course in the usual way
- Turn editing on (in the usual way) - the block does not show if editing is off
- 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)
(I will not always update the version on Moodle.org when there are changes)
Contributors
Davo Smith (Lead maintainer)
Please login to view contributors details and/or to contact them
//zh_cn <?php
// This file is part of the Drag and drop upload block for Moodle
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
$string['addhere'] = '在这里添加文件';
$string['addlinkhere'] = '在这里添加链接';
$string['addwebpagehere'] = '在这里添加网页';
$string['blockname'] = '文件拖动上传';
$string['dndworking'] = '通过从本地计算机中拖动文件,文本或者链接到课程相应主题中上传文件';
$string['filetoolarge'] = '文件太大无法上传';
$string['nameforlink'] = '链接名称?';
$string['nameforwebpage'] = '网页名称?';
$string['noajax'] = 'AJAX 课程编辑功能必须启动';
$string['nofilereader'] = '您的浏览器不支持此功能';
$string['nopermission'] = '您没有添加文件到此课程中的权限';
$string['noscript'] = 'Javascript 必须启动';
$string['notmoodle23'] = '您的站点是moodle2.3或以上版本,已经具备此项功能,联系管理员删除此功能';
$string['pluginname'] = '拖动文件上传';
~
~
I just updated the plugin (we are using 2.2.4) and am getting a popup error when I attempt to dnd a file: "A required parameter (type) was missing: undefined"
This popup error occurs after the upload animation finishes and files are no longer uploading at all. It's doing this for any type of file that I try
Any suggestions? Thanks!
I wish we could upgrade to 2.3 but it's a bit of a drastic change to switch to it during the middle of a semester at my university. Hopefully next Spring or Summer!
Fantastic plugin. I've tried installing this on the latest version of 2.2.5 and the following error is being returned when dragging an item into a Moodle course: Coding error detected, it must be fixed by a programmer: clean_param() can not process arrays, please use clean_param_array() instead.: undefined
Do you know what could be causing this? Thanks, Andrew