warsztatywww / aplikacjawww

Web application for scientific summer school
https://warsztatywww.pl
GNU Affero General Public License v3.0
5 stars 6 forks source link

Photo upload is broken for some images #626

Open cytadela8 opened 2 years ago

cytadela8 commented 2 years ago

When trying to upload this year images I get errors such as:

* __all__
  * Unable to add invalid images: ['Artur Puzio-00000IMG_00000_BURST20220815163243381_COVER.jpg', 'Artur Puzio-IMG_20220808_224013.jpg', 'Artur Puzio-IMG_20220809_234504.jpg']
* __all__
  * Unable to add invalid images: ['Piotr Lewandowski-IMG_2326.jpg', 'Piotr Lewandowski-IMG_2333.jpg']
* __all__
  * Unable to add invalid images: ['Mateusz Kulejewski-20220816_202111.jpg']
* __all__
  * Unable to add invalid images: ['Krzysztof Haładyn-20220814_233203.jpg']
cytadela8 commented 2 years ago

I have trouble reproducing this issue locally

cytadela8 commented 2 years ago

seems it happens kind-of randomly and uploading more files is more likely to cause it

krzys-h commented 2 years ago

Try to upload less images at a time? :P Around 100MB per upload was usually fine. Perhaps /tmp is mounted as a ramfs and it's running out of space or something weird like that?

You can also try to change the error message to report the actual exception here: https://github.com/warsztatywww/aplikacjawww/blob/master/gallery/forms.py#L24

cytadela8 commented 2 years ago

Changing the error message is what we should do. Making a console upload tool (with some progress indication) would also be nice.