Re: File Upload - post_max_size and upload_max_filesize in GBs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rumor has it that uploaded files are stored in memory before being committed
to disk. If so, the amount of free RAM available to PHP would be the limit
to the filesize regardless of the ini file settings.

I don't think that is the case. File is written to temp directory as it is uploaded. And the qeustion is of php having negative values after I specify post size limit to 4G

You should probably use another method of transport for files that large.
FTP immediately comes to mind.

You mean ftp client? Like cute ftp. If yes, the problem is that along with uploading the file I also have to update database to associate that file with some user etc. It needs to be web based.

Sukhwinder Singh

----- Original Message ----- From: "Jim Moseby" <JMoseby@xxxxxxxxxxxxxxxxx>
To: "'Sukhwinder Singh'" <ssruprai@xxxxxxxxxxx>; <php-general@xxxxxxxxxxxxx>
Sent: Thursday, June 07, 2007 8:52 PM
Subject: RE: File Upload - post_max_size and upload_max_filesize in GBs



Hello,

I want to allow uploading of huge video files, which may be
as big as 4 GB. But when I try to set

post_max_size = 4G
upload_max_filesize = 4G

in php.ini, it doesn't work and everything in post (posted
data) is ignored.

I get a warning about size of posted data greater than some
negative number.

I read somewhere that php stores this data in integer.

I have tested it on 64 bit system (php 5.1.6 installed on
Mandriva 2007.0) as well as 32 bit system (php 5.2.2
installed on windows xp sp2).

Value up to, I think, 2147483647 bytes or ( around 1.999.. gb) works

We need to allow uploading of 4 GB files. Is there any solution.

Regards,
Sukhwinder Singh


Rumor has it that uploaded files are stored in memory before being committed
to disk. If so, the amount of free RAM available to PHP would be the limit
to the filesize regardless of the ini file settings.

You should probably use another method of transport for files that large.
FTP immediately comes to mind.

JM

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux