When uploading a file with PHP (using FTP functions), is it possible to detect the orginal name of the file? For example, currently I keep having to have a rename input box (named rename):
$newfilename = $rename.".jpg";
ftp_put($conn_id, $newfilename, $source_file, FTP_BINARY);
In otherwords, I have to regenerate the name in my script -either through a random string or by having the user specify the name. Is it possible to use whatever the name of the file was on the local system?