added apostrophe check back in to front end for time being

This commit is contained in:
bill bittner 2017-07-28 14:54:02 -07:00
parent 7c1a0f2e66
commit cbc87c40b8

View file

@ -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':