Re: Can I use ftp_put to bypass upload_max_filesize?

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

 



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


[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