Skip to content

Do not create Photo objects for non-photo files when uploading albums

Tom van Bussel requested to merge 511-dont-save-broken-photos into master

Closes #511 (closed)

Previous behaviour

Steps to reproduce:

  1. Go to photos admin and create a new Album
  2. Upload a zip which contains non-photo files.
  3. The admin panels warns that the non-photo file was ignored, yet a Photo object was created for it.

New behaviour

Steps to validate that it works:

  1. Go to photos admin and create a new Album
  2. Upload a zip which contains non-photo files.
  3. The admin panels warns that the non-photo file was ignored, and it was ignored.

Merge request reports