Loading...
 
Skip to main content

Features / Usability


Problem uploading large images (> 1Mb but less than the 8.80 Mb limit)

We are using 1.9.9 and are able to upload images of approximately 1 Mb or smaller, but the upload page hangs if the file being uploaded is larger than that. This is well short of the 8.80 Mb limit.

We are using the standard single file upload (not the batch upload). The 1 Mb limit is cumulative - i.e. two 450Kb files work, but three hang. The problem is very consistent (1 Mb is approximate).

Some kind of setting somewhere?

Any tips or help would really be appreciated, as our current workaround is to load each picture into a tool and reduce it's resolution, which is very time consuming.

Thanks!


From the FAQ:
>Q: How can I upload images larger than XXXX?
>A: The maximum upload file size is determined by the upload_max_filesize setting in your php.ini configuration file.

Thanks! Let me see if our sysadmin already tried this.


I think also that you can upload larger images by storing the images in a directory (rather than the default setting of "database"). In the Image Gallery admin you can choose directory BUT I would worry that if you switch this after having images uploaded to the database they may vanish or at least be inaccessable. I've been too scared to try it.

Thanks. Our sysadmin upped upload_max_filesize awhile ago and it did not fix the problem.

I will try max_execution_time and max_input_time.

We are also occassionally getting the error:

Message:
Error Message - Got a packet bigger than 'max_allowed_packet' bytes


This is an older thread, but I am afraid that it does not contain the valid answer.

The default installation of tikiwiki and MySQL does not permit files (images, attachments, files) larger than 1M and the problem is not in tikiwiki or PHP. By default, MySQL is configured with "max_allowed_packet=1M". The way MySQL is installed, the my.ini (or my.cnf) does not even contain a line with that parameter.

If you want to be able to store files larger than 1M in the database, you need to add a line to the my.ini (my.cnf, depending on your configuration and OS):

max_allowed_packet=16M

(or put the value that you want, instead of 16M).

You will have to restart MySQL after the change.