Posted by moltra on January 6, 2013 at 7:43pm
Right now my site is keeping each version of a file uploaded. it appends _0, _1 on the end of the file name. I only want to keep the most recently uploaded file.
Any Ideas?
Right now my site is keeping each version of a file uploaded. it appends _0, _1 on the end of the file name. I only want to keep the most recently uploaded file.
Any Ideas?
Comments
If these are files uploaded
If these are files uploaded into a file or image field, see http://drupal.org/project/upload_replace
all versions of the uploaded
all versions of the uploaded file are still kept. I have an API that returns the location of the file so that other apps that use my data can download the files. Currently they are getting multiple copies of the files.
The upload_repace module only changes the way the file names change.