added apostrophe check back in to front end for time being
This commit is contained in:
parent
7c1a0f2e66
commit
cbc87c40b8
1 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,9 @@ function validateFile(file) {
|
|||
if (!file) {
|
||||
throw new Error('no file provided');
|
||||
}
|
||||
if (/'/.test(file.name)) {
|
||||
throw new Error('apostrophes are not allowed in the file name');
|
||||
}
|
||||
// validate size and type
|
||||
switch (file.type) {
|
||||
case 'image/jpeg':
|
||||
|
|
Loading…
Reference in a new issue