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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Changing A File Name On The Fly
by VincentK (Beadle) on Dec 18, 2013 at 19:42 UTC | |
|
Re: Changing A File Name On The Fly
by ww (Archbishop) on Dec 18, 2013 at 22:43 UTC | |
by tangent (Parson) on Dec 19, 2013 at 00:29 UTC | |
by ww (Archbishop) on Dec 19, 2013 at 12:26 UTC | |
|
Re: Changing A File Name On The Fly
by marinersk (Priest) on Dec 19, 2013 at 00:24 UTC | |
|
Re: Changing A File Name On The Fly (CGI?)
by Anonymous Monk on Dec 18, 2013 at 22:23 UTC |