Hi,

 I have a question pertaining to Embedded Perl.
(But it may be Apache or mod_perl in nature)

>From the example upload script on the Apache Embedded
Perl page I am implementing a small file upload system
however I have noticed files cut out when uploading at
around 1 meg. (Reports "Network Error" with no message
logged to the log files - anything under a meg works
no problems)

Is this an Apache or mod_perl limitation?

And whats the best way of getting around it? Is there 
a simple Apache directive i can put in the config file
or is there a hard coded patch required?

thanks in advance!

Bill

ps Yes i do know of other methods such as a meta-ftp
client for files this large but this violates our
firewall policies etc etc.. :)


-------------------------

[$ if !defined $fdat{ImageName} $]<br>

    <FORM METHOD="POST" ENCTYPE="multipart/form-data">
      <INPUT TYPE="FILE" NAME="ImageName">
          <INPUT TYPE="SUBMIT" NAME="Submit"
VALUE="Upload file">
    </FORM>

[$else$]<p>

 <br>
[-      open FILE, "> /tmp/file.$$";
        print FILE $buffer while
read($fdat{ImageName}, $buffer, 32768);
    close FILE;

-]
Your file has been saved to [+ "/tmp/file.$$" +]<br>


__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

Reply via email to