Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Trivial
-
Resolution: Unresolved
-
Affects Version/s: 1.9, 2.0
-
Fix Version/s: None
-
Component/s: Course
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE, MOODLE_20_STABLE
Description
I' m not sure if this is the right place to post my suggestion, but i'll give it a try.
Moodle lacks a funtion to upload multiple files inside the webbrowser (i know webdav provides this functionality..).
So i tried to integrate swfupload (from www.swfupload.org) into the file-upload-site of moodle and
managed to make it work. Perhaps it's possible to take the code and integrate it in future versions of moodle.
You can find a short description of "moodle flashupload" here:
Attachments
-
- flashupload.diff
- 22/Dec/08 1:30 AM
- 100 kB
- Anthony Borrow
-
$i18n.getText("admin.common.words.hide")
- flashupload.zip
- 22/Dec/08 1:41 AM
- 52 kB
- Anthony Borrow
-
- files/index.php 39 kB
- files/index.php~ 39 kB
- files/flashupload/version.txt 0.0 kB
- files/flashupload/uploadbutton.png 2 kB
- files/flashupload/upload.php 1 kB
- files/flashupload/swfupload.swf 11 kB
- files/flashupload/swfupload.queue.js 2 kB
- files/flashupload/swfupload.js 36 kB
- files/flashupload/readme.txt 1 kB
- files/flashupload/liesmich.txt 1 kB
- files/flashupload/license.txt 0.2 kB
- files/flashupload/history.txt 1 kB
- files/flashupload/handlers.js 10 kB
- files/flashupload/flashupload.php 5 kB
- files/flashupload/flashupload.css 3 kB
- files/flashupload/fileprogress.js 5 kB
- files/flashupload/cancelbutton.gif 1 kB
- lang/he_utf8/flashupload.php 0.5 kB
- lang/en_utf8/flashupload.php 0.4 kB
- lang/de_utf8/flashupload.php 0.4 kB
-
$i18n.getText("admin.common.words.hide")
- moodle-flashupload-2.0.0.zip
- 03/Jan/08 10:43 PM
- 42 kB
- Helmut Geppl
-
- cancelbutton.gif 1 kB
- handlers.js 6 kB
- license.txt 0.3 kB
- modified_index.php 50 kB
- readme.txt 1 kB
- swfupload.css 3 kB
- swfupload.graceful_degradation.js 3 kB
- swfupload.js 38 kB
- swfupload.queue.js 2 kB
- swfupload_f8.swf 7 kB
- swfupload_f9.swf 9 kB
- upload.php 0.7 kB
- version.txt 0.0 kB
- en_utf8/flashupload.php 0.5 kB
- de_utf8/flashupload.php 0.5 kB
$i18n.getText("admin.common.words.show")- moodle-flashupload-2.0.0.zip
- 03/Jan/08 10:43 PM
- 42 kB
- Helmut Geppl
-
$i18n.getText("admin.common.words.hide")
- moodle-flashupload-2.2.0.zip
- 12/Nov/08 1:42 AM
- 37 kB
- Helmut Geppl
-
- flashupload/cancelbutton.gif 1 kB
- flashupload/de_utf8/flashupload.php 0.4 kB
- flashupload/en_utf8/flashupload.php 0.4 kB
- flashupload/fileprogress.js 5 kB
- flashupload/flashupload.css 3 kB
- flashupload/flashupload.php 5 kB
- flashupload/handlers.js 10 kB
- flashupload/he_utf8/flashupload.php 0.5 kB
- flashupload/history.txt 1 kB
- flashupload/license.txt 0.2 kB
- flashupload/liesmich.txt 1 kB
- flashupload/readme.txt 1 kB
- flashupload/swfupload.js 36 kB
- flashupload/swfupload.queue.js 2 kB
- flashupload/swfupload.swf 11 kB
- flashupload/upload.php 1 kB
- flashupload/uploadbutton.png 2 kB
- flashupload/version.txt 0.0 kB
$i18n.getText("admin.common.words.show")- moodle-flashupload-2.2.0.zip
- 12/Nov/08 1:42 AM
- 37 kB
- Helmut Geppl
Issue Links
| This issue is duplicated by: | ||||
| MDL-27297 | File UI Improvements |
|
|
|
Activity
- All
- Comments
- History
- Activity
- Source
- Test Sessions
Helmut - If swfupload.org code for multiple file upload is not incorporated into Moodle core, it could certainly enjoy a happy life in CONTRIB. Let's wait to hear what the other developers think about the idea and go from there. Peace - Anthony
I'm attaching a patch file including the swf file as a binary for 19STABLE. The modification to index.php is trivial but this allows folks to simply apply the patch and go. Peace - Anthony
Helmut - Here is how I would package the zip file. This makes the zip file such that the user can just extract it to their Moodle site (code root). It will overwrite the index.php so it assumes the latest version of Moodle 1.9 and requires more effort to keep the file updated as it gets modified in the tree but I think it really simplifies things for those wanting to try it out. Peace - Anthony
I'm sure there are multiple forum discussions on this; however, this is the one that got me looking at this issue:
I've always thought that it is a bit archaic that you cannot simply select multiple files from one directory (using shift or ctrl/cmd), or select indeed a directory, so as to upload content swiftly.
I have certainly had content providers irate over this issue! But in the discussion Anthony refers to the expression 'showstopper to adoption' rather nails it!
Regards,
John
I am having major problems with this working on Mac OsX and Linux platforms. I can only guess it seems to be an issue with the flash uploader file and the distributions of flash on the subject Unix machines.
Is there a fix for this or any idea what could be causing this?
YUI now has an uploader for multiple files built into it.
This should be the preferred method for adding this functionality as it requires no additional libraries.
I have implemented this in an "Add file / files" resource which wraps the standard "Link to file or website" resource.
If you are interested I will contribute the code.
Guy
We found out that files uploaded by flashupload could pass without beeing checked by our Virus-Checker (ClamAV). However, a test-virus uploaded via the "normal" upload-button was detectet and removed.
hmm, there are more security issues, I would strongly discourage anybody to install this on production servers, sorry ![]()
Flash is not a great tool for multiple file uploads because it uses its own http transport.
This means that it is a completely separate user agent from the browser.
So you don't have a valid session when the files get uploaded.
The work around I have come up with is basically to create "flash upload keys" which are generated via ajax (so it goes over the browser's http transport).
Then when flash uploads the files a php file on the server checks to see if there is a valid "upload key" corresponding to the file name.
Its not a great solution but it is better than just letting Flash upload anything.
The real solution to multiple file uploads is to use HTML5.
Again, another reason for why Flash sucks.
I'm not sure what the plans are for 2.0. I do not remember reading anything about allowing multiple file uploads. I'm not sure if the patch attached with this issue is the solution but I would support it as a feature request/improvement. Peace - Anthony