Quote:
Originally Posted by StuartD
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?