[PHP] Re: Can I use ftp_put to bypass upload_max_filesize?

2005-03-15 Thread Eli
Sed wrote:
Is it somehow possible, to use ftp_put to upload a file bigger than the
upload_max_filesize is set in the php.ini? (eg. upload 100Mb while
upload_max_filesize is set to 16MB)
You will have also to consider the browser's timeout limit. Uploading a 
100MB file via HTTP POST will probably take quite a long time that the 
browser will timeout and interrupt the transfer.

I got a thought, but didn't try to check it out:
If there's a way to split a file to small chunks (i.e 2MB a chunk), then 
you can use JS Remote Scripting (HTTPRequest) to upload the chunks one 
by one, and then append all chunks on server side and you get the 100MB 
file. This way you can also display a progress bar of uploading. Of 
course the chunks will be transffered like packets (in TCP), so each 
chunk will have an header that relates it to the original file.
The part that is not well cleared to me is whether is possible to split 
a file into chunks using JS.
What do you think?

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


RE: [PHP] Re: Can I use ftp_put to bypass upload_max_filesize?

2005-03-15 Thread SED
Are you meaning timeout limit? Not PHP script execution limit in php.ini?
What I understand, the PHP script does not run until the file is uploaded to
the server via POST.

SED

-Original Message-
From: Eli [mailto:[EMAIL PROTECTED] 
Sent: 15. mars 2005 23:27
To: php-general@lists.php.net
Subject: [PHP] Re: Can I use ftp_put to bypass upload_max_filesize?

Sed wrote:
 Is it somehow possible, to use ftp_put to upload a file bigger than 
 the upload_max_filesize is set in the php.ini? (eg. upload 100Mb while 
 upload_max_filesize is set to 16MB)

You will have also to consider the browser's timeout limit. Uploading a
100MB file via HTTP POST will probably take quite a long time that the
browser will timeout and interrupt the transfer.

I got a thought, but didn't try to check it out:
If there's a way to split a file to small chunks (i.e 2MB a chunk), then you
can use JS Remote Scripting (HTTPRequest) to upload the chunks one by one,
and then append all chunks on server side and you get the 100MB file. This
way you can also display a progress bar of uploading. Of course the chunks
will be transffered like packets (in TCP), so each chunk will have an header
that relates it to the original file.
The part that is not well cleared to me is whether is possible to split a
file into chunks using JS.
What do you think?

-thanks, Eli

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



[PHP] Re: Can I use ftp_put to bypass upload_max_filesize?

2005-03-15 Thread Esad Hajdarevic
I'm not sure, but using multipart encoding may help, it
essentially breaks the huge file into smaller chunks.
Esad
Sed wrote:
I have been thinking about a way to upload a file through a web-browser,
bigger than the upload_max_filesize is set in the php.ini on the server.
Is it somehow possible, to use ftp_put to upload a file bigger than the
upload_max_filesize is set in the php.ini? (eg. upload 100Mb while
upload_max_filesize is set to 16MB)
Regards,
SED
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php