$inputfile = $Request->Form('Offer');
%><%=$inputfile%><P><%
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))
{
print OUTFILE $buffer;
} ## end while
close OUTFILE;
The form that leads to this code is the following
<form action="Save.asp" method="post" enctype="multipart/form-data" name="EditProj">
<input type=file name=Offer>
</form>
My problem is that ithe ASP page creates the file wanted but it is empty.
Am I doing something wrong??
At 09:04 рм 26/3/2001 -0800, you wrote:
--- Sophokles Zafeiris <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm new in mod_perl.
> I'm trying to write an ASP script using Perlscript that will be able
> to perform file uploading from an html form.
> Is there any script that I could use?
Check the docs on CGI.pm, which will handle practically all the painful
parts for you. Just be *SURE* to create a multipart form! It won't work
otherwise. (It's all in the docs. =o)
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/