Forum Moderators: coopster

Message Too Old, No Replies

how to configure php.ini to upload big files

         

smyomin

10:26 am on Mar 22, 2006 (gmt 0)

10+ Year Member



Dear all,

i am facing with the problem that i have to write upload page with php to upload big files like 30 MB video files. and i already changed the max upload file size to 48M in php.ini but it is still not working..

i can upload over 15 MB files it is ok. but when i tested with 20 MB files, i got fail.

if you guys guide me i will great appritiate and thanks to you.

myomin

seanpecor

12:02 pm on Mar 22, 2006 (gmt 0)

10+ Year Member



Hey smyomin, you missed the post_max_size variable, it also should be set to 48M. The setting post_max_size limits the size of the post data, so it would limit the entire form's data. If you're doing more than one image upload on a single form then you'd want to increase post_max_size to an even higher amount than upload_max_filesize.

Sean

coopster

8:53 pm on Mar 22, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Yep, there are a few directives you may want to have a look at when dealing with large file uploads, and they are all of type PHP_INI_PERDIR [php.net]

upload_max_filesize 
post_max_size
memory_limit
max_execution_time
max_input_time

The post_max_size [php.net] directive is a good start to understanding what each does and their relationship to each other. Actually, Handling file uploads [php.net] and the page links there, including Common Pitfalls are probably your first stop.

Scally_Ally

2:09 pm on Mar 23, 2006 (gmt 0)

10+ Year Member



In order to have a progress bar showing the status of the upload do you have to have a Java applett or is there someway you could do it with PHP (uploading chunks maybe?)..

Think if you are to have large files uploading which may take over 5 minutes it is imperative to have one.

coopster

4:55 pm on Mar 23, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



There are a number of options, one of which is the PEAR HTML_Progress package.
[pear.php.net...]
[pear.php.net...]
[pear.php.net...]

Scally_Ally

4:28 pm on Mar 24, 2006 (gmt 0)

10+ Year Member



cheers coopster...

thanks for your help again.

ally

smyomin

9:30 am on Apr 20, 2006 (gmt 0)

10+ Year Member



thanks all guys.