View Full Version : Upload max file size changes
July 14th, 2005, 07:22 AM
We have multiple copies of PP 5.13 running on different Unix servers and lately have been receiving complaints about not being able to upload photos. After looking into it, users are trying to upload pics and or zip files larger than what the server allows. On one of the servers the hosting company allows 8 meg uploads while the others only allow 2 meg. So instead of allowing all of the servers to accept 8 meg uploads they sent this reply.
You can set the upload_max_filesize in either a .htaccess file or using the ini_set() function within your scripts.
I saw this setting in bulkupload but not in other files. What is your suggestion? Mine is to fix the server to allow larger files, but guess that's not an option. :mad:
July 14th, 2005, 09:03 AM
Well that ini_set is only available to be set in scripts after php 4.23 so not something we would arbitrarily set in our scripts as it could cause problems since there are people on php versions less than that.
you can do this in pp-inc.php
July 14th, 2005, 09:42 AM
Tried modifying the php-inc file, no luck then tried adding a .htaccess file in the /data directory with this:
php_value upload_max_filesize 25M
php_value max_execution_time 800
Comes back with a message processing image but the photo does not upload.
July 14th, 2005, 09:56 AM
Yep sounds like there server doesnt allow that change. Not alot of servers allow htaccess overrides. If you php is over version 4.23 it should allow the script ini_set line. You can try placing that directly in uploadphoto and bulkupload php files
July 14th, 2005, 10:08 AM
I moved the .htaccess file out to the /gallery root and now it works. :)
Not sure why it's not working in the /gallery/data folder, but as long as it works that's cool.
BTW - The server is running PHP Version 4.3.11
July 14th, 2005, 11:20 AM
That would be correct as if you use an htaccess file it is PER_DIR which means it works for any script in that directory so it would need to be in the gallery to work.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.