Add new feature to atto in order to delete orphaned files when saving

Add new feature to atto in order to delete orphaned files when saving

от Andreas Schenkel -
Количество ответов: 7
Изображение пользователя Plugin developers

When adding an image or a file to a label and then deleting this image or file in the visible editing area then the only the link to the file ist deleted and the image or file is still stored.

In some cases this behaviour is correct but in many times the file should also be deleted. Automated deletion might would delete files that should not be deleted.

At the moment there is no easy to access indicator that there exists such files.

We will add a feature to the Atto editor so that when saving a label with such orphaned files, a dialog will inform about existing orphaned files and ask for how to deal with this files (delete or still store them).

Maybe a second “save without orphaned files”-Button would be also a good solution.

Are there any additional ideas about this issue to keep in mind?




В ответ на Andreas Schenkel

Add new feature to atto in order to delete orphaned files when saving

от Paul Holden -
Изображение пользователя Core developers Изображение пользователя Moodle HQ Изображение пользователя Moodle Workplace team Изображение пользователя Particularly helpful Moodlers Изображение пользователя Peer reviewers Изображение пользователя Plugin developers Изображение пользователя Testers
Did you try using the "Manage files" option within Atto itself? It will show any files in use, references to files that don't exist, and orphaned files (those that were once referenced, but now are not) within the editor?
В ответ на Paul Holden

Re: Add new feature to atto in order to delete orphaned files when saving

от Andreas Grabs -
Изображение пользователя Core developers Изображение пользователя Particularly helpful Moodlers Изображение пользователя Peer reviewers Изображение пользователя Plugin developers Изображение пользователя Translators

Hi Paul,

what Andreas meant was not the possibility to delete these files but the visibility of the existing.

Most teachers aren't aware of, that an image or a video in an html-text is not really deleted after removing or replacing it by another one.

As a result a lot of orphaned files are accumulating. That on the other hand let the course backups grow.

If you have a large installation it could become a real problem.

So it would be nice if there would be an indicator or some notification when such orphaned files exist.

Best regards
Andreas

В ответ на Andreas Schenkel

Re: Add new feature to atto in order to delete orphaned files when saving

от Andreas Schenkel -
Изображение пользователя Plugin developers
Thank for the feedback.
The idea is to add the information that are show in the managafiles-dialog already during the editing the textfield so that there is an indication in that moment, when orphaned files accures. So automatic deletion will be proceed but the user can delete the files directly from the editing-view. It might look like this in a first version:
The red button is displayed in that moment, when a file is deleted in the editor but is still stored in the background.
В ответ на Andreas Schenkel

Re: Add new feature to atto in order to delete orphaned files when saving

от Andreas Schenkel -
Изображение пользователя Plugin developers
В ответ на Andreas Schenkel

Re: Add new feature to atto in order to delete orphaned files when saving

от tim st.clair -
Изображение пользователя Plugin developers
Nice addition. Seems to work in Moodle 4.0, although the annoying narrow centre column still confounds me at times because some content is wide. I turned on video and audio previewing and that pushed the size of the table out so that there is a horizontal scrollbar. Having the delete button on the left is great - I don't have to horizontally scroll to get to it.
massive screenshot showing centre column