httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 18492] New: - Problem with upload of files.
Date Sat, 29 Mar 2003 17:22:13 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18492>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18492

Problem with upload of files.

           Summary: Problem with upload of files.
           Product: Apache httpd-2.0
           Version: 2.0.44
          Platform: PC
               URL: http://www.thetroubleshooters.dk/parser
        OS/Version: Linux
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: All
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: mike@thetroubleshooters.dk


I have set up a really simple html file to upload a file.

<html>
<head>
</head>
<body>
<form method="POST" enctype="multipart/form-data" action="cgi-bin/env.cgi">
File to upload: <input type="file" name="upfile"><br><br>
<input type=submit >
</form>
</body>
</html>



This calls a very simple cgi script.

#!/bin/bash
echo "Content-type:text/html"
echo ""
echo '<HTML><BODY><PRE>'
env
echo "data"
cat
echo "done data"
echo '</pre><body></html>'



These are about the simplest test case that I can imagine for this kind of
thing.    The "cat" command will simply print anything transmitted to standard
out, and in turn back to the browser.

However..

Uploading a file results in an enormous wait time before the page actually
returns, and the data that is displayed is only a very small fraction of the
total data transmitted from the file..  The main file is about 500k, and the
amount of data shown is probably in the vicinity of 2-3k.

Using TCP dump I can see that the browse (mozilla Version 1.3 final) does indeed
transmit the amount of data, corresponding roughly, to the 500k that was
intended to be transmitted..  However The application (cgi script) does not see
all of the data.

It may be a configuration issue, however, search as I may (www.google.com, and
www.apache.org, for "file upload problem"), I find lots of examples on how to
implement the server side code.   All scripts, all attempts at performing the
file upload results in the very same problem.

1.  it hangs for an extremely long time.
2.  When it finally returns (if it finally returns), only a part of the data is
actually received by the CGI.

The application that I intend to use is a perl script I found on the web, this
script works fine in several other installations, however on my system it simply
hangs forever.  Trying to debug it, I reduced the cgi script, and the html page
to their bare essentials, and the problem persists..  Initially I was using
apache version 2.0.39, but upgraded to 2.0.44 hoping it may solve the problem,
both seem to have the same problems.

I have reverted the convfiguration file (httpd.conf) back to the original
standard version that is distributed with the apache distribution, and have then
added in the changes necessary to reference my web page...  However to no avail,
the problem persists.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message