•  » Requests
  •  » community upload needs configurable maxima

#1 2020-04-22 01:15:42

Auckland, New Zealand

community upload needs configurable maxima


My site was recently brought to its knees by a member trying to upload an image of 166MB, 600 megapixels.  It was a mistake, but the repeated attempts by the backend imagick to resize, and the repeated attempts by the user to upload after an apparent "freeze" filled up the tmp space with broken uploads, which in turn filled up the entire disk quota.

I tried using the Apache LimitRequestBody directive, but naturally that had no effect since pluploaded does it's thing in chunks.  The php max filesize is checked too late to be much use.

I have made a quick change to the add_photos.tpl to change line 204 from "max_file_size : '1000mb'," to 30mb, but that's too crude for anything but emergency.

I would like the community plugin to interrogate the php upload_max_filesize setting and adjust the pluploader settings accordingly.

Additionally I would like to be able to specify a maximum number of megapixels (not bytes).

Piwigo version: 2.10.2
PHP version: 7.2.24
MySQL version: 5.5.5-10.4.12-MariaDB
Graphics Library: ImageMagick 6.7.8-9


  •  » Requests
  •  » community upload needs configurable maxima

Board footer

Powered by FluxBB

github twitter newsletter Donate © 2002-2022 · Contact