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 - келді
Number of replies: 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?




In reply to 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?
In reply to 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

In reply to 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.
In reply to Andreas Schenkel

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

Andreas Schenkel - келді
Plugin developers қатысушының суреті
In reply to 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