Perl-Sensitive Sunglasses | |
PerlMonks |
Changing A File Name On The Flyby Milti (Beadle) |
on Dec 18, 2013 at 19:01 UTC ( [id://1067677]=perlquestion: print w/replies, xml ) | Need Help?? |
Milti has asked for the wisdom of the Perl Monks concerning the following question: I have a web site where users can login and post a profile. I want them to be able to upload their picture to be included with their description. I know how to use a file upload program but I want to rename the image file when/as it is being uploaded and have no idea how to do that. The person uploading the image file will have a unique "Account ID" such as $AccountID = "$FORM{'field1'}"; and I want the resultant image file in the database to be named pix$accountID. Can someone provide assistance and point me to an example somewhere as to how to accomplish this task? Any assistance will be greatly appreciated. Milt
Back to
Seekers of Perl Wisdom
|
|