PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old July 14th, 2005, 08:22 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Aug 2004
Posts: 77
Upload max file size changes

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.

Quote:
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.
atlantic2 is offline   Reply With Quote
Old July 14th, 2005, 10:03 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,788
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

ini_set("upload_max_filesize", "8M");
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old July 14th, 2005, 10:42 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Aug 2004
Posts: 77
Tried modifying the php-inc file, no luck then tried adding a .htaccess file in the /data directory with this:

Quote:
<IfModule mod_php4.c>
php_value upload_max_filesize 25M
php_value max_execution_time 800
</IfModule>
Comes back with a message processing image but the photo does not upload.
atlantic2 is offline   Reply With Quote
Old July 14th, 2005, 10:56 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,788
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old July 14th, 2005, 11:08 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Aug 2004
Posts: 77
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
atlantic2 is offline   Reply With Quote
Old July 14th, 2005, 12:20 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,788
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I adust the max zip file size allow? Johnny Doomo Photopost Pro Installation & Upgrades 3 October 25th, 2005 03:32 PM
Max image size vBulletin vs. Max image size Gallery rayzon Installs and Upgrade - vBulletin 3.0.X 2 May 28th, 2005 10:51 PM
upload eror - file size blkatt Installs and Upgrade - vBulletin 3.0.X 4 May 28th, 2005 03:54 PM
max upload size && request acceptance for registration elad General Discussion 1 August 6th, 2004 08:30 AM


All times are GMT -5. The time now is 07:05 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0