Help - Search - Members - Calendar
Full Version: upload max filesize
Hostony Board > General Support > PHP/MySQL
smokie
Just tried to upload 12mb file failed, found out by doing
<?

Phpinfo()

?>

that max upload size is set at 2mb , can this be increased to say 20mb
Regards Smokie
MartinB
you can set it from a .htaccess file.
put it in the folder of the script with the follow content:

CODE
php_value upload_max_filesize 20M


You can also set:

CODE
php_value post_max_size 20M
php_value max_execution_time 1000000
php_value max_input_time 1000000


greetings
smokie
Thanks for the reply mbleninger, tried something similar before but the script doesnt run after, get server error, same with this

Invalid command 'php_value', perhaps mis-spelled or defined by a module not included in the server configuration

I copied anad pasted
Smokie
MartinB
Do you have a Linux based account?
smokie
Yes its linux based
smokie
Opening a ticket.
Thanks for your help mblendinger
Smokie
MartinB
no prob smokie, sorry about it.
I'm using this .htaccess in a lot of places in my websites.

try this too, I have it in a file manager utility:

CODE
Options -Indexes

<IfModule mod_php4.c>
php_value post_max_size "20000000000"
php_value upload_max_filesize "20000000000"
php_value memory_limit "20000000000"
php_value max_execution_time "20000000000"
php_value max_input_time "20000000000"
php_value magic_quotes_gpc off
</IfModule>
LimitRequestBody 20000000000


good luck! smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.
IPS Driver Error

IPS Driver Error

There appears to be an error with the database.
You can try to refresh the page by clicking here