Ticket #155 (closed defect: invalid)

Opened 7 months ago

Last modified 6 months ago

Importing Images bigger then 2M

Reported by: natenewz@… Owned by: mike
Priority: normal Milestone:
Component: General Version: 1.0b3
Severity: normal Keywords: A big Inconvenience
Cc: natenewz@…

Description

php.ini limits the size of uploads using the normal uploading to 2M, however, I see no reason that Importing images from the /uploads/ folder should require that the images are under 2M in order to handle them. Currently, if you put an image greater then 2M into the uploads folder, then go to import tab in admin, it will not show up. I have to batch compress all the images I want to load into plogger in order to add them to my gallery.

Change History

Changed 7 months ago by sidtheduck

  • cc natenewz@… added

AFAIK, the import tab is governed by memory_limit and/or max_execution_time system variable limits within the php.ini file (not based on upload_max_filesize like plog-upload is). Plogger is currently set up to attempt to alter the default settings for these two variables if set too low. However, some webservers do not allow changes to php system variables using the ini_set command within a script (like mine).

A workaround for this (which I use on my site) is to add variable changes within your .htaccess or local php.ini file (again, may or may not work depending on your webhost's settings). To alter, open the .htaccess file that comes with Plogger and add the following lines to the top (this will allow for any scripts within the folder or subfolders of your plogger install to use these system variable settings):

php_value upload_max_filesize 16M
php_value max_execution_time 300
php_value memory_limit 64M

You can change these values as you see fit. Again, this is only if your webhost allows php system variables to be set via .htaccess files (some also allow for local php.ini files). Check with your webhost.

Changed 6 months ago by sidtheduck

  • status changed from new to closed
  • resolution set to invalid

Since this is a server issue and the code is in place to attempt to change the PHP settings, I'm closing this ticket.

Note: See TracTickets for help on using tickets.