Extend MDRequirementsSet with max file size allowed for PDFs

This commit is contained in:
Joshua Ramon Enslin 2024-05-17 10:29:17 +02:00
parent 9c80957709
commit 9ddb461491
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -23,6 +23,8 @@ final class MDRequirementsSet {
// Object images need to be at least 500 px wide // Object images need to be at least 500 px wide
const MIN_OBJECT_IMAGE_HEIGHT = 540; const MIN_OBJECT_IMAGE_HEIGHT = 540;
const MAX_FILESIZE_PDF = 20000000;
const TIME_EARLIEST_YEAR = -6000000000; const TIME_EARLIEST_YEAR = -6000000000;
const TIME_EARLIEST_DATE = '0001-01-01'; const TIME_EARLIEST_DATE = '0001-01-01';
const TIME_LATEST_YEAR = 2099; const TIME_LATEST_YEAR = 2099;
@ -37,6 +39,8 @@ final class MDRequirementsSet {
const MIMETYPES_OBJECT_RESTORATION_REPORT = ['application/pdf', 'image/jpeg', 'image/png']; const MIMETYPES_OBJECT_RESTORATION_REPORT = ['application/pdf', 'image/jpeg', 'image/png'];
const MIMETYPES_OBJECT_CONDITION_REPORT = ['application/pdf', 'image/jpeg', 'image/png']; const MIMETYPES_OBJECT_CONDITION_REPORT = ['application/pdf', 'image/jpeg', 'image/png'];
const MIMETYPES_OBJECT_DOCUMENT = ['image/jpeg', 'image/jpg', 'application/pdf'];
const MIMETYPES_COLLECTION_IMAGE = ['image/jpeg', 'image/jpg']; const MIMETYPES_COLLECTION_IMAGE = ['image/jpeg', 'image/jpg'];
const MIMETYPES_INSTITUTION_IMAGE = ['image/jpeg', 'image/jpg']; const MIMETYPES_INSTITUTION_IMAGE = ['image/jpeg', 'image/jpg'];
const MIMETYPES_EXHIBITION_IMAGE = ['image/jpeg', 'image/jpg']; const MIMETYPES_EXHIBITION_IMAGE = ['image/jpeg', 'image/jpg'];