Moodle

Unable to delete database activity entry attachment

Details

  • Database:
    MySQL
  • Affected Branches:
    MOODLE_16_STABLE, MOODLE_20_STABLE

Description

If you upload a file in a database entry and then wish to delete that file there is no way to do so in the UI.

If you delete the file from the backend (i.e. going into the course files area or via ftp etc.) the link remains and an error is thrown (just stating the obvious i.e. can't find file).

You can get rid of the link (as long as you only enter a space in the the link optional file name field), and therefore, the error message, but can not get rid of the file icon.

Activity

Hide
Petr Škoda (skodak) added a comment -

Workaround is to delete the entry itself and add it again without the file.

Show
Petr Škoda (skodak) added a comment - Workaround is to delete the entry itself and add it again without the file.
Hide
Harry Smith added a comment -

Hi Petr

Thanks for the reply. Came to the same conclusion

In the majority of cases this may not be such a problem, and may teach people to get it right in the first place. That said, when you have multiple file uploads in one database entry and the files concerned are large this workaround can cost hours not minutes.

Perhaps this is a feature request rather than a bug? I.e. add a way to delete an uploaded file in the database activity UI.

Show
Harry Smith added a comment - Hi Petr Thanks for the reply. Came to the same conclusion In the majority of cases this may not be such a problem, and may teach people to get it right in the first place. That said, when you have multiple file uploads in one database entry and the files concerned are large this workaround can cost hours not minutes. Perhaps this is a feature request rather than a bug? I.e. add a way to delete an uploaded file in the database activity UI.
Hide
Robert Allerstorfer added a comment -

I think if the GUI allows to upload a file, it should also allow to remove it, otherwise this feature seems incomplete to me.

Show
Robert Allerstorfer added a comment - I think if the GUI allows to upload a file, it should also allow to remove it, otherwise this feature seems incomplete to me.
Hide
Robert Allerstorfer added a comment -

Is this issue not going to be addressed (Fix Version/s)?

Show
Robert Allerstorfer added a comment - Is this issue not going to be addressed (Fix Version/s)?
Hide
Helen Foster added a comment -

Just updating this issue as it seems to still be a problem in Moodle 2.0.

Reassigning to moodle.com for consideration.

Show
Helen Foster added a comment - Just updating this issue as it seems to still be a problem in Moodle 2.0. Reassigning to moodle.com for consideration.
Hide
Helen Foster added a comment -

Sorry this issue is still not fixed. It remains a problem in 2.0.3.

Show
Helen Foster added a comment - Sorry this issue is still not fixed. It remains a problem in 2.0.3.
Hide
Sue Kurt added a comment -

We are still having this issue as well and cant find a way around it other than replacing the file

Show
Sue Kurt added a comment - We are still having this issue as well and cant find a way around it other than replacing the file
Hide
Carol Dobson added a comment -

I definitely need this. If I delete the whole entry, I will need to re-enter comments (from other people as well as my own).

Show
Carol Dobson added a comment - I definitely need this. If I delete the whole entry, I will need to re-enter comments (from other people as well as my own).

People

Dates

  • Created:
    Updated: