2016-01-21 12:24:15 +01:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
export const validationParts = {
|
|
|
|
allowedExtensions: {
|
|
|
|
images: ['png', 'jpg', 'jpeg', 'gif']
|
|
|
|
},
|
|
|
|
itemLimit: {
|
|
|
|
single: 1,
|
|
|
|
multiple: 100
|
|
|
|
},
|
|
|
|
sizeLimit: {
|
2016-01-27 11:32:23 +01:00
|
|
|
default: 50000000000,
|
2016-01-21 12:24:15 +01:00
|
|
|
thumbnail: 5000000
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
const { allowedExtensions, itemLimit, sizeLimit } = validationParts;
|
|
|
|
|
|
|
|
export const validationTypes = {
|
|
|
|
additionalData: {
|
|
|
|
itemLimit: itemLimit.multiple,
|
|
|
|
sizeLimit: sizeLimit.default
|
|
|
|
},
|
|
|
|
registerWork: {
|
|
|
|
itemLimit: itemLimit.single,
|
|
|
|
sizeLimit: sizeLimit.default
|
|
|
|
},
|
|
|
|
workThumbnail: {
|
|
|
|
itemLimit: itemLimit.single,
|
|
|
|
sizeLimit: sizeLimit.thumbnail
|
|
|
|
}
|
|
|
|
};
|
2016-02-08 11:03:41 +01:00
|
|
|
|
|
|
|
// Number of manual retries before showing a contact us screen on the uploader.
|
|
|
|
export const RETRY_ATTEMPT_TO_SHOW_CONTACT_US = 5;
|
2016-04-20 15:15:59 +02:00
|
|
|
|
|
|
|
export const ENDPOINTS = {
|
|
|
|
s3: 'https://ascribe0.s3.amazonaws.com',
|
|
|
|
accelerate: 'https://ascribe0.s3-accelerate.amazonaws.com'
|
|
|
|
};
|