Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.4
-
MOODLE_34_STABLE
-
MOODLE_35_STABLE
-
MDL-60427_dnd_folder_improved -
Description
Hi,
we've encountered that if a user tries to upload a resource that is not supported by the dragging and dropping onto course page feature, there's an alert saying that there was an error whilst communicating with the server.
In the background the resource seems to be adding to the course, but it has an infinite spinner in front of its title:
Only with a page refresh the unsupported entry will disappear on the course page.
A resouce that triggers this behavior is a simple folder from your computer dragged onto the course page. We don't know if there are many more of such unsupported resources.
Improvement proposal
- Description text has to be more explaining for the user. For example:
"The resource [name] you are trying to upload to the course is not supported by drag and drop." - This resource should not appear on the course page in the background
Just like it is solved with resources that are too large for the course:
Steps to reproduce
Preconditions:
- Existing Moodle instance
- Existing course
- At least one teacher or manager is enrolled
- A folder on your computer
Steps:
- Login with the user account
- Go to the course
- Turn editing on
- Drag and drop the folder from your computer onto the course page
=> See that an alert with the text "An error occurred whilst communicating with the server" is popping up and the the folder seems to be added to the course page displaying an infinite spinner in front of the folder title.
Best, Kathrin