Page 1 of 1

Uploading files of size more than 10MB

Posted: Tue Sep 16, 2008 6:56 am
by BasantSingh
Hi Friends,
I am new to the PHP, can anybody please tell me what I have to do to allow an user to upload files more than 10MB.
I tried changing in the php.ini file following..
upload_maxfile_size=15M
host_max_size=15M
memory_limit=15M
But it didn't work.
I also want to know what is .htaccess file, where it is present.
I am using Apache 2.2.9 & PHP 5.2.6.

Thanks,
Basant Singh.

Re: Uploading files of size more than 10MB

Posted: Tue Sep 16, 2008 7:07 am
by panic!
Have you tried

post_max_size = 15M

as well?

Re: Uploading files of size more than 10MB

Posted: Tue Sep 16, 2008 7:39 am
by BasantSingh
Ya i have tried that...

Re: Uploading files of size more than 10MB

Posted: Tue Sep 16, 2008 8:16 am
by panic!
Have you tried restarting the server?

The .htaccess you create in the root of the folder you want the rules within it to apply to.

Re: Uploading files of size more than 10MB

Posted: Tue Sep 16, 2008 8:58 am
by BasantSingh
Can you please tell me that what should be the content of the file if we want to upload a large file??
According to you if my php files are in a folder named "webApplication" then .htaccess should be in that folder
only????
I have used the following....
I am using php5..

<IfModule mod_php5.c>
php_value upload_max_filesize 50M
php_value post_max_size 50M
</IfModule>

Re: Uploading files of size more than 10MB

Posted: Tue Sep 16, 2008 1:37 pm
by panic!
Edit your php.ini instead of .htaccess and httpd.conf