Hello, 

I build a simple File-Upload form: 

<html>
<form action="test_upload" enctype="multipart/form-data" method="post">
<input type="text" name="text">
<input type="FILE" name="Tfile" accept="*/*">
<input type="submit" value="upload">
</form></html> 

and a script test_upload, which is called from the form: 

<%perl>
my $file = $r->upload;
my $ftype = $file->info->{'Content-Type'};
my $fsize = $file->size;
my $fname = $file->filename;
$m->out("$ftype : $fsize : $fname");
</%perl>
<%ARGS>
$Tfile => undef
</%ARGS> 

With netscape this works well, but with opera and internet-explorer
(tested with 6.0), $r->upload isnt defined? What am i doing wrong here? 

Bye, Olaf 

Reply via email to