mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-23 06:45:22 -07:00
Updated commit with all the suggested changes
This commit is contained in:
parent
43856709a8
commit
9e9a695e26
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ export default defineComponent({
|
|||
try{
|
||||
// Check if the file has an acceptable extension
|
||||
const allowedExtensions = [".jpg", ".jpeg", ".png", ".gif", ".webp",".heic",".avif"];
|
||||
const fileExtension = fileObject.name.split(".").pop()?.toLowerCase();
|
||||
const fileExtension = fileObject.name.split(".").pop()?.toLowerCase();
|
||||
|
||||
// If the file extension is not in the allowed extensions list, show an error message
|
||||
if (!fileExtension || !allowedExtensions.includes(`.${fileExtension}`)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue