im trying to upload (via a web form) an image file and then put it into a mysql table
(wow i bet thats never been done befre)
my $filehandler = $cgi->upload('file');
while ( <$filehandler> ) {
print $_;
}
is just returning nothing
my $filehandler = $cgi->upload('file');
while ( <$filehandler> ) {
$filecontents .= $_;
}
my $sth = $dbh->prepare(); $sth->execute($filecontants); $sth->finish();
nothing goes into the field of the table. im running debain with perl straight out of apt-get i get the feeling that debian is doing things funny because i cant seem to get outside of the current directory (eg ../ or ../../../files/ or even absolute paths) could be apache2 and mod_perl
anyway ive googled poor firefox to death. im sure its an easy fix
Dean -- WWW: http://dean.bong.com.au LAN: http://www.bong.com.au EMAIL: [EMAIL PROTECTED] or [EMAIL PROTECTED] ICQ: 16867613 -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html