Page 1 of 1

Change Image Name After Upload

Posted: Wed May 26, 2004 3:25 am
by Shyft
I have a script in which the user uploads an image. I then create a thumbnail using imagemagick and store it in another folder. Then it takes the file name and stores that with the accompanying information in a MySQL database when the form is submitted. I was wondering how I would change the actual name of the uploaded file (as well as the thumbnail). I heard something about saveas() though I don't know at all how it works. Any help?

Posted: Wed May 26, 2004 3:30 am
by maqmus
Look at rename()

Posted: Mon May 31, 2004 4:51 am
by Shyft
thanx. It's working now with that =)