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.
Thanks for replying.
Sukhwinder Singh
----- Original Message -----
From: "Stut" <stuttle@xxxxxxxxx>
To: "Sukhwinder Singh" <ssruprai@xxxxxxxxxxx>
Cc: <php-general@xxxxxxxxxxxxx>
Sent: Friday, June 08, 2007 1:28 AM
Subject: Re: File Upload - post_max_size and upload_max_filesize in
GBs
Sukhwinder Singh wrote:
Sounds like you need a Java applet. I have little experience with this,
but I know that quite a few exist. I have no idea if any of them support
sending meta data with the upload. I suggest you start Googling.
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.
-Stut
----- Original Message ----- From: "Stut" <stuttle@xxxxxxxxx>
To: "Sukhwinder Singh" <ssruprai@xxxxxxxxxxx>
Cc: <php-general@xxxxxxxxxxxxx>
Sent: Thursday, June 07, 2007 8:56 PM
Subject: Re: File Upload - post_max_size and upload_max_filesize in
GBs
Sukhwinder Singh wrote:
Thanks for your reply.
So you are saying I cannot do it using php. These files have to be
uploaded locally but using web interface and I have to pass some
parameters along with file upload to update the database after upload
is successful. Also I have to rename the file after it is uploaded.
Any utility which allows this?
Sounds like you need a Java applet. I have little experience with this,
but I know that quite a few exist. I have no idea if any of them support
sending meta data with the upload. I suggest you start Googling.
-Stut
----- Original Message ----- From: "Stut" <stuttle@xxxxxxxxx>
To: "Sukhwinder Singh" <ssruprai@xxxxxxxxxxx>
Cc: <php-general@xxxxxxxxxxxxx>
Sent: Thursday, June 07, 2007 8:35 PM
Subject: Re: File Upload - post_max_size and upload_max_filesize
in GBs
Sukhwinder Singh wrote:
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.
Yeah, don't use HTTP. Seriously, HTTP is a crappy mechanism for
uploading files, especially large ones. And by large ones I mean
>~20MB!!
You need to look into maybe a java applet, or just plain FTP/SFTP/SCP
for files that big. HTTP was never designed to handle uploading files
of that size. For a start there is no facility to restart the upload
should it get interrupted and fail.
-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