changes
This commit is contained in:
@@ -107,7 +107,7 @@ export default defineNuxtPlugin((nuxtApp) => {
|
||||
};
|
||||
|
||||
const upload = function (file, type, user, convert, quality) {
|
||||
var fileFormat = [
|
||||
const fileFormat = [
|
||||
{
|
||||
type: "image",
|
||||
format: [".png", ".jpg", "jpeg", ".bmp", ".gif", ".svg", ".webp"],
|
||||
@@ -117,7 +117,7 @@ export default defineNuxtPlugin((nuxtApp) => {
|
||||
format: [".wmv", ".avi", ".mp4", ".flv", ".mov", ".mpg", ".amv", ".rm"],
|
||||
},
|
||||
];
|
||||
var valid = undefined;
|
||||
let valid = undefined;
|
||||
if (type === "image" || type === "video") {
|
||||
valid = false;
|
||||
let found = fileFormat.find((v) => v.type === type);
|
||||
|
||||
Reference in New Issue
Block a user