Opened 18 years ago

Closed 18 years ago

#3426 closed (duplicate)

FileField / ImageField - old files left around

Reported by: Ionuț Ciocîrlan Owned by: Adrian Holovaty
Component: Core (Other) Version: dev
Severity: Keywords:
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When uploading a new file as a replacement for an old one using the FileField, the old file is left lying around on the file system.

The old one should be deleted, which would be consistent with the behavior exhibited when deleting an object with a FileField.

Change History (3)

comment:1 by Adrian Holovaty, 18 years ago

Triage Stage: UnreviewedDesign decision needed

comment:2 by Malcolm Tredinnick, 18 years ago

I'm very suspicious of allowing automatic file deletion as a default. It's *forever* so if anything else in the system is using the file, it's bad.

Maybe an attribute on the field for deleting replaced files?

comment:3 by Marc Fargas <telenieko@…>, 18 years ago

Resolution: duplicate
Status: newclosed

#4339 talks about the same thing, but has a patch so I'm marking this one duplicate of that one.

Note: See TracTickets for help on using tickets.
Back to Top