Formatting + Set file size limit to 5mb
This commit is contained in:
parent
1a15105bdc
commit
e7b8477891
1 changed files with 2 additions and 3 deletions
|
|
@ -159,7 +159,6 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
isImageValid(imageFile) {
|
isImageValid(imageFile) {
|
||||||
|
|
||||||
return imageFile && imageFile.size < this.maxFileSize;
|
return imageFile && imageFile.size < this.maxFileSize;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -201,10 +200,10 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
maxFileSize() {
|
maxFileSize() {
|
||||||
let kiloBytes = 512;
|
let kiloBytes = 5140;
|
||||||
|
|
||||||
return kiloBytes * 1028;
|
return kiloBytes * 1028;
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
async value(newValue) {
|
async value(newValue) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue