Hi,
I'm trying to do an upload & parsing of CSV file & data from an .ipl form.
In the form I have < input type="file" name="dealer_code_csv" / > and set the enctype in a javascript like:
document.forms['callout_form'].setAttribute('enctype', 'multipart/form-data', 0);
When the condition meets, my Perl code is:
use strict;
my $csv = Text::CSV->new();
my $cgiCSV = new CGI;
print $cgiCSV->header();
my $h = $cgiCSV->upload('dealer_code_csv');
I tried to print out the filename ($h) but it doesn't return me anything. Is my code correct?
At the top most of this .ipl file I'm using $cgi = TeamSite::CGI_lite->new(); only in the condition of a csv upload file, it will use the above code. Is it ok to do this? Could this be the reason why I can't get the file?
Please help. Thanks!
TS Info : Version 6.5 on Solaris