recommended max.filesize?

chris!

Joined: 2005-01-18
Posts: 5
Posted: Thu, 2005-01-20 10:33

is there a recommended maximum of filesize for g2? i have uploaded a 55MB large .tiff-file and it seems like it is too large to be handled. the thumbnail has been created correctly but when i try to open the album that contains the really large picture (and that i concede ;-) it does not open.
in addition to that it is not possible to delete the file or album that contains the image (if required, i could do again and post the erreor message, please let me know if this is the case).
is my webserver the bottleneck or is 55MB just too large to be handled from g2?

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Thu, 2005-01-20 10:39

The size limit is entirely on your server, probably something around the size of your ram + swap. If you see some issues uploading large files, make sure your php's max upload, post and memory limits are larger than the file size you are uploading. Mine are all set to 128M - 256M and I have no real issues uploading large zip files of images (asside from time).

 
chris!

Joined: 2005-01-18
Posts: 5
Posted: Thu, 2005-01-20 12:23

i zipped the large image just to try if there is the same problem with larger files of other filetypes. the zip has a size of ~40MB (still a large file) and there is no performance or data handling problem at all.
i guess that it is not a fundamental filesize problem. the large image seems to be too much for the image processing (in my case image magick) function.

 
delebre

Joined: 2004-09-08
Posts: 9
Posted: Thu, 2005-01-20 22:25

how do you tweak Gallery 2 so that you can limit what your users can upload? I think a 500k Cap would be good.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-01-21 01:09

you can write a module with an ItemAddPlugin to remove the item right after it is added if it is too big.