Re: File-upload problem with netscape and Internet-Explorer

2002-06-06 Thread oklein
Stas Bekman writes: > Try: > http://perl.apache.org/release/docs/1.0/guide/snippets.html#File_Upload_wi > th_Apache__Request Thats where i got the idea for my script - but it doesnt work for me. Perhaps the $r (im using Mason 1.04 under debian) isnt a really Apache::Request? I use Mason with

File-upload problem with netscape and Internet-Explorer

2002-06-06 Thread oklein
Hello, I build a simple File-Upload form: 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"); <%ARGS> $Tfile => u

Setting the Content-Type for displaying a gif

2002-06-05 Thread oklein
Hello, I have a problem with setting the correct content-type under mod_perl with mason. I use mason with the mod_perl args_method. I want to get a .gif out of a database and print it in a window, but all i get is binary junk. I tried to set the correct content-type but when i look at the page s