Hi all,
I have a filesize limitation for uploads. "You can upload files of any type. Max filesize you are allowed to upload is 8MB." How do I have this limitation increased? I'd like clients to be able to uploads files larger than that.
There are a few messages in the forum about this, but my site is hosted and not local. My host uses phpMyAdmin 2.9.1.1, and I can login to the actual database, but all of the options listed are greek to me (being a web designer and not a hardcore programmer)! I can view the MySQL system variables (Server variables and settings)—and see "max allowed packet" which is set to "33,553,408"—but don't know how to change it or any of the other variables related to filesize limitations.
The only "editable" file I see on my server regarding this is "php.ini." That file only has the following variables: "register_globals = off" and "allow_url_fopen = off".
Any ideas on what I need to do or explanations that can make this process much clearer?
Thanks!
- Chris
Any place for a step-by-step tutorial for this? Or clear instructions on how do this effectively? It may be more simple than I think(?). Thanks!
Chris
You'll need to ask your host to help you. You'll need to modify either php.ini, mysql.cf, or httpd.conf (any or all of them) to increase your upload limit depending on the current configuration options.
Thanks for the reply Ryan. I suspected that would be the case. Okay, sounds good. Looks like that's my next step!
Chris
http://stackoverflow.com/questions/1873973/can-i-set-a-php-ini-upload-max-filesize-variabl...
but when I set this to something big (33MB) I still hit the 8MB limit. Still, better than the default 2MB :)
(Old thread, yes, but I'm hoping this will help others, I came across it...)
Found this comment: http://www.projectpier.org/node/691#comment-1379
Putting the two together, the solution on my server is to create/edit an .htaccess file in the projectpier directory with contents:
<Files *.php>
php_value upload_max_filesize 32M
php_value post_max_size 32M
</Files>
I would think it'd be more secure to specify index.php instead of *.php, but don't know all the pages that can upload files. Those more familiar with ProjectPier might know and advise.
Hi Chris,
Some hosts allows you to add a php.ini file (which is usually limited) instead of a .htaccess. Usually these configuration files have a lot more than just a few lines and also they are never located on the server where you will be able to see and access them.
If you're able to see and edit that php.ini file chances are it is one such file. You can just add the following lines in a new line (each in their own line) and edit the amount to what you want it to be.
upload_max_filesize 32Mpost_max_size 32M