Jump to content

Archived

This topic is now archived and is closed to further replies.

Guest convention

Change file name upon upload?

Recommended Posts

Guest convention
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!

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.