Page 1 of 1

Uploading a file size greater than 50 mb.

Posted: Tue Sep 25, 2007 1:52 am
by mohanaturheart
Uploading a File in PHP using Http (or) FTP.

Posted: Tue Sep 25, 2007 3:41 am
by aceconcepts
Yeah....and???

upload a file in php which size greater than 50 mb.

Posted: Tue Sep 25, 2007 4:15 am
by mohanaturheart
I want to know, How to Upload a file in php which size is greather than 50 mb.

Posted: Tue Sep 25, 2007 4:24 am
by aceconcepts
First of all you probably want to make sure you have a good enough banwidth to deal with larger file uploads.

Secondly you will need an upload script - take a look at this basic script: http://www.tizag.com/phpT/fileupload.php

The link i posted offers a very basic upload script and really requires additional precautionary configuration i.e. file type exclusions (only accept gif, jpg, png etc...) and typcial error trapping and whatever else you want to do.

Hope this helps.

Posted: Tue Sep 25, 2007 5:35 am
by superdezign
Change your server's configuration where it deals with "post_max_size" and "upload_max_filesize" in your php.ini file (or use ini_set(), but that's only temporary).

Posted: Tue Sep 25, 2007 8:16 am
by Zoxive
Even if your server is configured to allow uploads up to 50 megs, who ever is uploading better have a nice connection also, because eventually the server might time out (Because of how long it will take).

Php file uploading

Posted: Wed Sep 26, 2007 12:43 am
by mohanaturheart
aceconcepts wrote:First of all you probably want to make sure you have a good enough banwidth to deal with larger file uploads.

Secondly you will need an upload script - take a look at this basic script: http://www.tizag.com/phpT/fileupload.php

The link i posted offers a very basic upload script and really requires additional precautionary configuration i.e. file type exclusions (only accept gif, jpg, png etc...) and typcial error trapping and whatever else you want to do.

Hope this helps.
Normally now i am uploading a file its size is less than 2 mb. Now I have to upload minimum 8 to maximum 20 mb. From your answer i am cleared that our clients are maximum using 256 mbps speed network connections only. I am visit the tizag.com upload script that is ok. But when size is greater than 2mb all of them said set the ini_set("upload_max_filesize","20M"), ini_set("post_max_size","20M"); but this are not working . Please help me.
[/quote]

Help in Uploading

Posted: Wed Sep 26, 2007 1:25 am
by mohanaturheart
I set the ini_set("upload_max_filesize","20M"), ini_set("post_max_size","20M"); but this are not working . Please help me.

Posted: Wed Sep 26, 2007 4:22 am
by mrkite
you can't use ini_set, by the time your script runs the file has already been uploaded. You must modify php.ini

Posted: Wed Sep 26, 2007 7:56 am
by Zoxive
mrkite wrote:you can't use ini_set, by the time your script runs the file has already been uploaded. You must modify php.ini
OR in the .htaccess.

Code: Select all

php_value upload_max_filesize 20M