Any suggestion for useless attachment?
Added by Haihan Ji almost 11 years ago
Try this:
1. request create-issue form
2. upload an attachment
3. cancel create
Use your database browser tool: SELECT * from attachments;
The attachment is there.
but container_id and container_type is null.
List your disk, the attachmet is there, too. ($REDMIND_ROOT/files)
Can these attachmets be removed automatically?
Replies (2)
RE: Any suggestion for useless attachment?
-
Added by Jan Niggemann (redmine.org team member) almost 11 years ago
Can these attachmets be removed automatically?
Yes, from 2.3.0 upwards you can use the rake task rake redmine:attachments:prune
to remove uploaded files left unattached for one day.
Remember to include your RAILS_ENV in the command and see RedmineRake for other rake tasks.
RE: Any suggestion for useless attachment?
-
Added by Haihan Ji almost 11 years ago
thanks a lot, it's helpful.