Keep It Simple, Stupid | |
PerlMonks |
Uploading Multiple Filesby cal (Beadle) |
on Sep 27, 2002 at 20:22 UTC ( [id://201324]=perlquestion: print w/replies, xml ) | Need Help?? |
cal has asked for the wisdom of the Perl Monks concerning the following question:
Hello, Since there is no way to hardcode a file path as a "value" in the FILE UPLOAD form as stated in RFC1867. I would like to find an alternative to allow multiple uploads. The files always have the same names and paths. Because I am still new to perl my scripting creativity is very limited. I had an idea that I want to see if it is possible. Since the name of the FILE fields are named FILE1 FILE2 FILE3 FILE4 FILE5 etc. I thought of having a hash that would contain the file paths of the files I wanted to upload(shown below).Then if the passed value of param("FILE$a")was empty it could look up the stored file path in the hash. After looking at this it may be I don't require a FILE FIELD INPUT at all and may be just need to hard code all of the file paths anyway. Any ideas Thanks Cal
Back to
Seekers of Perl Wisdom
|
|