feat: add folder to filter:uploadImage and filter:uploadFile

This commit is contained in:
Barış Soner Uşaklı
2020-05-22 10:00:24 -04:00
parent 478c8dd72b
commit 7f24200c73
4 changed files with 16 additions and 7 deletions

View File

@@ -149,6 +149,7 @@ image.uploadImage = async function (filename, folder, imageData) {
return await plugins.fireHook('filter:uploadImage', {
image: imageData,
uid: imageData.uid,
folder: folder,
});
}
await image.isFileTypeAllowed(imageData.path);