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

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

2002-06-06 Thread Stas Bekman
[EMAIL PROTECTED] wrote: > 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("$

Re: File upload problem

2001-03-27 Thread Sophokles Zafeiris
Actually I've tried the following piece of code. $inputfile = $Request->Form('Offer'); %><%=$inputfile%><% open (OUTFILE,">/export/home0/www/biznet/offers/newfile") or die "Can not write to file because of $!";  binmode OUTFILE;  binmode $inputfile;  while (read($inputfile,$buffer,1024))