mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-22 23:49:15 +00:00
refactor: increase file size limits
This commit is contained in:
committed by
Alex Christoffer Rasmussen
parent
bcabc50ad1
commit
ac14cb9624
@@ -33,8 +33,8 @@ export function validateProjectFile(file: File) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Limit file size of a project file to around 1MB
|
// Limit file size of a project file to around 1MB
|
||||||
if (file.size > 1_000_000) {
|
if (file.size > 2_000_000) {
|
||||||
throw new Error('File size limit (1MB) exceeded');
|
throw new Error('File size limit (2MB) exceeded');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -56,8 +56,8 @@ export function validateLogo(file: File) {
|
|||||||
throw new Error('File is empty');
|
throw new Error('File is empty');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Limit file size of a project file to around 1MB
|
// Limit file size of a project file to around 1.5MB
|
||||||
if (file.size > 1_000_000) {
|
if (file.size > 1_500_000) {
|
||||||
throw new Error('File size limit (1MB) exceeded');
|
throw new Error('File size limit (1.5MB) exceeded');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user