Whilst's working on a project involving workbench and field_collections, I see that there are a couple of issues around files being deleted, one of them namely #2058025: Missing files in forward revisions and #1084436: doesn't seem to handle file attachments at all (basically the forward revision of the entity is considered to be different to the current one so it has the files deleted)
My question is - why should Drupal delete any files at all? Or put another way, should this behavior be a configuration, either in the content type or as a lower level variable-set ?
Supplied is a rough patch to illustrate my idea
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | file-field-dont-delete-files-between-revisions.patch | 2.48 KB | dgtlmoon |
| file-field-dont-delete-files-between-revisions.patch | 2.9 KB | dgtlmoon |
Comments
Comment #2
dgtlmoon commentedComment #3
cilefen commentedThis is related to, and may be considered a duplicate of, #1399846: Make unused file 'cleanup' configurable.