Allow uploading PNG files for object images (the PNGs shall be converted

to JPG)
This commit is contained in:
Joshua Ramon Enslin 2022-09-02 21:19:22 +02:00
parent f65ec3fe14
commit 1c1c4a8b1e
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -28,7 +28,7 @@ final class MDRequirementsSet {
const MIMETYPES_USER_PROFILE_IMG = ['image/jpeg', 'image/jpg']; const MIMETYPES_USER_PROFILE_IMG = ['image/jpeg', 'image/jpg'];
const MIMETYPES_OBJECT_IMAGE = ['image/jpeg', 'image/jpg']; const MIMETYPES_OBJECT_IMAGE = ['image/jpeg', 'image/jpg', 'image/png'];
const MIMETYPES_OBJECT_PDF = ['application/pdf']; const MIMETYPES_OBJECT_PDF = ['application/pdf'];
const MIMETYPES_OBJECT_PROVENANCE_REPORT = ['application/pdf']; const MIMETYPES_OBJECT_PROVENANCE_REPORT = ['application/pdf'];
const MIMETYPES_OBJECT_RESTORATION_REPORT = ['application/pdf', 'image/jpeg', 'image/png']; const MIMETYPES_OBJECT_RESTORATION_REPORT = ['application/pdf', 'image/jpeg', 'image/png'];