Re: Problem with large file upload



On Tue, 27 Jun 2006 00:41:44 CST, yf110@xxxxxxxxxxxxxx (Malcolm
Dew-Jones) wrote:

I think you mean you're using CGI.pm

It saves the upload into a temporary file. Perhaps the server is not
allowing your script to save a temporary file larger than 1/2 Meg.

Hi Malcolm,

I have done some more testing and checked CGI.pm. Mysteriously,
everything now works so I suspect the problem was due to recent security
changes in the server.

When I couldn't get the Perl script (using CGI.pm) to work I wrote a C++
version which uploads 20MB reliably. Then I wrote a Perl version
(without CGI.pm) but this didn't work. The next day it did upload
correctly and the original also worked.

The links to the files are :
<http://phelum.com/files/upload.pl> - Perl using CGI.pm
<http://phelum.com/files/upload1.pl> - Perl without CGI.pm
<http://phelum.com/files/upload.cgi> - C++ executable
<http://phelum.com/files/upload.cpp> - C++ source
<http://phelum.com/files/CGI.inc> - C++ include

The original purpose for the upload script has now passed but I have
certainly learnt much more about Perl, CGI, and POST streams.

Thanks for your input. It did inspire me to search through CGI.pm and
see how it works.

--
Steven

--
PLEASE NOTE: comp.infosystems.www.authoring.cgi is a
SELF-MODERATED newsgroup. aa.net and boutell.com are
NOT the originators of the articles and are NOT responsible
for their content.

HOW TO POST to comp.infosystems.www.authoring.cgi:
http://www.thinkspot.net/ciwac/howtopost.html
.



Relevant Pages

  • problem deleting record in a text file
    ... I'm new to perl. ... You will find below the script I wrote. ... Actually the temporary file is created the way it should be but I didn't ... # extract the username from the record ...
    (perl.beginners)
  • Vulnerability in Upload Lite 3.22 that could allow somebody to upload/execute code on a remote host.
    ... upload/execute code on a remote host. ... Upload Lite 3.22 from PerlScriptsJavaScripts.com ... The temporary file is saved as CGItemp ... using a backdoor cgi script, ...
    (Bugtraq)
  • Re: Perl File Uploading
    ... > I am a total n00b to perl and have decided to write my own file upload ... > script for a task I have to do. ... > to allow users to upload a file through a webpage. ... Check out the 'upload' method of the CGI module. ...
    (perl.beginners)
  • what is wrong in this script?...thanks
    ... I cant connect this script with my HTML-form. ... working with PERL. ... I have upload the script with 755 and in the form ... I change the configuration of the errored questions. ...
    (comp.lang.perl.modules)
  • Re: Passing variables / data between php - perl
    ... > to perl scrips and from perl scripts to php pages. ... printing to a temporary file, ... having the PHP script "implode" the file. ...
    (alt.php)