Re: File Upload - post_max_size and upload_max_filesize in GBs

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

 



You don't appear to have read what I said. A Java applet can use FTP to upload the file - PHP does not get involved in that part. Once the upload is complete the applet can POST to your PHP file giving it information like where it's put the file and this other information you need to give it so it can rename the file. This is the only bit PHP gets involved in and it doesn't involve trying to upload 4 gig over a machanism that was never designed for it.

Thanks again for replying.

I have read. I have been trying to find out way for last two days.
I can say about jupload and how it seems to work.
It uploads file to server in a temporary directory.
It has postURL parameter. Then it POSTS the data to php file.
Because it POSTS, the php configuration values comes into question.

Here is an example:

Settings in php.ini are 50M for upload_max_fisesize and 50M for post_max_size.
I used japplet  and  uploaded a 51.89 MB file.

This is what is in error log.

[08-Jun-2007 03:06:29] PHP Warning: POST Content-Length of 54414946 bytes exceeds the limit of 52428800 bytes in Unknown on line 0

[08-Jun-2007 03:06:29] PHP Notice: Undefined index: File0 in E:\projects\ice\post_test.php on line 13

File0 is the first file in $_FILES array, as POST fails I don't get that array.

I uploaded a 48 MB file and it worked without any problem.

Sukhwinder Singh

----- Original Message ----- From: "Stut" <stuttle@xxxxxxxxx>
To: "Sukhwinder Singh" <ssruprai@xxxxxxxxxxx>
Cc: <php-general@xxxxxxxxxxxxx>
Sent: Friday, June 08, 2007 2:10 AM
Subject: Re: File Upload - post_max_size and upload_max_filesize in GBs


Sukhwinder Singh wrote:
Even java applets have to hand over the file to some script, in this case php and php will get it in $_FILES array it seems (in case of japplet). so the problem will remain.

Not at all true. A Java applet can use FTP to handle the upload and still pass meta data about the file as an HTTP POST request. There is no requirement to use HTTP to upload the file from a Java applet.

It is not about how data is going to be transferred but it is about php having a limit on what it can accept as POST.
But we'll see how it works out. I'll let everyone know.
I am trying japplet for now.

You don't appear to have read what I said. A Java applet can use FTP to upload the file - PHP does not get involved in that part. Once the upload is complete the applet can POST to your PHP file giving it information like where it's put the file and this other information you need to give it so it can rename the file. This is the only bit PHP gets involved in and it doesn't involve trying to upload 4 gig over a machanism that was never designed for it.

-Stut

--
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