I want to get the full local filename of an uploaded image so that I can copy it to a new directory and process it with my own image processing scripts. Which hooks/actions should I look into to achieve this?
Thanks
|
I want to get the full local filename of an uploaded image so that I can copy it to a new directory and process it with my own image processing scripts. Which hooks/actions should I look into to achieve this? Thanks |
|||
|
|
|
The
Edit: If you need the attachment ID as well, it might be better hooking in at a higher level, such as add / edit attachment:
in which case the variable sent in is the attachment_id, from which you can derive the rest using something like:
|
|||||
|