Jump to content


Change file name upon upload?


  • Please log in to reply
1 reply to this topic

#1 Guest_convention_*

Guest_convention_*
  • Guests

Posted 03 September 2006 - 09:22 AM

I have an upload form, but I would like PHP to automatically change the uploaded file to a specified name upon upload. How can I do this? Thank you!

#2 Kris

Kris
  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

Posted 03 September 2006 - 10:21 AM

I would assume you're using the move_uploaded_file() function, just change the 'destination' parameter to whatever you want to rename the file to.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users