Merge branch '1.4.x' of github.com:appwrite/console into feat-g4

This commit is contained in:
Arman committed 2023-08-21 17:32:46 +02:00
commit 5a30062eb5
1 file changed
+3 -1
+3 -1
View File
@@ -22,7 +22,9 @@
const hasInvalidExt = Array.from(value).some((file) => {
const fileExtension = file.name.split('.').pop();
return !allowedFileExtensions.includes(fileExtension);
return allowedFileExtensions?.length
? !allowedFileExtensions.includes(fileExtension)
: false;
});
if (hasInvalidExt) {
error = 'Invalid file extension';