Forums
This topic is locked
Rename Upload files - ##ext## problem
Posted 31 Aug 2003 04:20:10
1
has voted
31 Aug 2003 04:20:10 James Johnson posted:
Hi, I'm using the Rename Uploaded Files add-on of Pure PHP Upload. I'm setting the rename string to a session var, but when I put $_SESSION['sv_UploadFileName']##ext##
in the Rename Uploaded File(s) Options dialog, it creates this code:
$ruf->renameMask = $_SESSION['sv_UploadFileName']##ext##;
Which causes a PHP error.
How can I retain the extension of the file that I'm uploading?
Thanks,
James
Edited by - jamessmb on 31 Aug 2003 04:20:39
Replies
Replied 31 Aug 2003 04:39:46
31 Aug 2003 04:39:46 James Johnson replied:
figured it out. it was a syntax problem.
$ruf->renameMask = "$fileName.##ext##";
$ruf->renameMask = "$fileName.##ext##";