Closed (fixed)
Project:
Upload element
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
2 Feb 2009 at 15:42 UTC
Updated:
13 Nov 2015 at 18:49 UTC
Jump to comment: Most recent
Comments
Comment #1
alan d. commentedI haven't run the code, but the following function should work. Let me know if it works. I haven't a test environment at the moment.
It is only the section after "case UPLOAD_ELEMENT_NEW:" that has changed.
The two points of interest are the imagecache call:
This is only applicable to images when imagecache preset is given.
If this fails / or if it is ignored, the we use Drupal to move and rename:
Finally, replace the upload_element_save() call with the upload_element_save_rename() call.
Comment #2
Anonymous (not verified) commentedI'm impressed. Worked great. Exactly what I wanted. Thanks for the speedy response.