Print

Print


I haven't needed to upload such large files, but I wonder if using the
ftp functions in php would bypass this problem:

http://us3.php.net/manual/en/ref.ftp.php

Andrew

On 2/9/07, Thomas Dowling <[log in to unmask]> wrote:
> I have always depended on the kindness of strange PHP gurus.
>
> I am trying to rewrite a perpetually buggy system for uploading large
> PDF files (up to multiple tens of megabytes) via a web form.  File
> uploads are very simple in PHP, but there's a default maximum file size
> of 2MB.  Following various online hints I've found, I've gone into
> php.ini and goosed up the memory_limit, post_max_size, and
> upload_max_size (and restarted Apache), and added an appropriate hidden
> form input named MAX_FILE_SIZE.  The 2MB limit is still in place.
>
> Is there something I overlooked?  Or, any other suggestions for how to
> take in a very large file?
>
> [My current Perl version has a history of getting incomplete files in a
> non-negligible percentage of uploads.  Weirdness ensues: whenever this
> happens, the file reliably cuts off at the same point, but the cutoff is
> not a fixed number of bytes, nor is it related to the size of the file.]
>
>
> --
> Thomas Dowling
> [log in to unmask]
>


--
Andrew Darby
Web Services Librarian
Ithaca College Library
http://www.ithaca.edu/library/
[log in to unmask]