Formatting + Set file size limit to 5mb

This commit is contained in:
Chloe Herd 2023-03-22 15:23:54 -04:00
parent 1a15105bdc
commit e7b8477891

View file

@ -159,7 +159,6 @@ export default {
},
isImageValid(imageFile) {
return imageFile && imageFile.size < this.maxFileSize;
},
},
@ -201,10 +200,10 @@ export default {
},
maxFileSize() {
let kiloBytes = 512;
let kiloBytes = 5140;
return kiloBytes * 1028;
}
},
},
watch: {
async value(newValue) {