Hello everyone,
I am new to Perl, and stuck with file uploading issue.
My Html is this,
My perl
I am expecting a array of 3 upload_filehand les, but the size of array is 1 only when it print out
How can i upload multiple files with same named field?
Many thanks
I am new to Perl, and stuck with file uploading issue.
My Html is this,
Code:
<form enctype="multipart/form-data" method=post action="/cgi-bin/upload/mfile.pl"> <input type=file name=file size="30"><br /> <input type=file name=file size="30"><br /> <input type=file name=file size="30"><br /> <input type="submit" value="Upload Image!"> </form>
Code:
my @upload_filehandles = $query ->upload('file');
my $arrLen = scalar @upload_filehandles;
logit("The size of array is $arrLen");
How can i upload multiple files with same named field?
Many thanks
Comment