Delete old files automatically when a new image is uploaded.
dopry - September 5, 2006 - 23:22
| Project: | Banner |
| Version: | HEAD |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | dopry |
| Status: | closed |
Jump to:
Description
The attached patch will mark all old attachments for deletion on the banner node form. only the newest attachment not marked for deletion will be saved on submit.
| Attachment | Size |
|---|---|
| banner-delete-old-files.patch.txt | 1.39 KB |

#1
cough, cvs/4.7, cough
#2
Changed behavior makes sense to me. Applied to HEAD. Thanks!
#3
*gah* more testing needed, it seems. AFAICT from continued testing, the attachment form elements are not available at the time this code is run.
#4
I'll follow up with it tonight.. They should be stored in the form array. I made upload use the form array to pass all the file data around so that would be available for other modules. Maybe there is a bad key involved.
#5
closing sing module is abandoned.