Attachments, file-history, undo/restore & overwrite issue


I noted that Attachments (that show in the left-pane) are quite easy to delete by accident. Are there any ways to lock attachments (i.e. a pdf copy of an submitted invoice should be read-only)

In general, a bit more meta around attachments in general would be a fantastic feature, i.e. file-history, replace file (with version-counter), undo/restore, and meta-fields tied to a specific file-entity.

I also noted that uploading a file with the same name, directly overwrites an existing one without notice. This is very risky as it happens cross doctypes and pretty common that an attachment might be called ‘quote.pdf’


made an issue here: Attachments overwrites files with same name · Issue #14336 · frappe/frappe · GitHub