inblosam has asked for the wisdom of the Perl Monks concerning the following question:
And then to process the submission of the files...<input type="file" name="file_1"> <input type="file" name="file_2"> <input type="file" name="file_3">
Whereas with just one file, I just send the file_1 directly to my uploader, like so:if ($fileList[0]) { my $uploadCnt = 3; my $fileCnt = 1; for (;$fileCnt<=$uploadCnt;$fileCnt++) { my $upfile = $ARGS{"file_$fileCnt"}; ### this passes the file to the mason component I created +to upload files my $fileRef = $m->comp("fileUploader.mas",upload_file=>$up +file); } }
When I do a Data::Dumper (print Dumper(\$upfile)) it just has the file name in there. Is there a default folder on the server the files are being stored at temporarily that I can just prepend to that file and move it? I am not sure what is happening and what to do to fix it. Any suggestions?my $fileRef = $m->comp("fileUploader.mas",upload_file=>$file_1);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Uploading multiple files
by suaveant (Parson) on Apr 28, 2006 at 17:38 UTC | |
|
Re: Uploading multiple files
by TedPride (Priest) on Apr 28, 2006 at 16:42 UTC | |
|
Re: Uploading multiple files
by TedPride (Priest) on Apr 28, 2006 at 20:13 UTC |