View Single Post
Old 07-23-2007, 05:04 PM  
Pipecrew
Master of Gfy.com
 
Pipecrew's Avatar
 
Industry Role:
Join Date: Feb 2002
Posts: 14,887
Quote:
Originally Posted by StuartD View Post
The filename is set here: basename( $_FILES['uploadedfile']['name'])

$target_path = $target_path . 'thenamethatyouwant.jpg';

You can have it be what you want, you aren't forced to use the name that the file was uploaded with.
ahhh ok! so could i put a variable right there, if i was trying to name it based off an ID? like if the id is 16, its going to be 16.jpg?
Pipecrew is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote