mirror of
https://github.com/emailerfacu-spec/minix-front.git
synced 2026-04-19 16:07:32 -03:00
correjida logica del filtrarImagenes
This commit is contained in:
@@ -17,8 +17,7 @@ export function filtrarImagen(file: File) {
|
|||||||
const allowed = ['image/png', 'image/jpg', 'image/jpeg', 'image/gif', 'image/webp'];
|
const allowed = ['image/png', 'image/jpg', 'image/jpeg', 'image/gif', 'image/webp'];
|
||||||
if (allowed.includes(file.type)) {
|
if (allowed.includes(file.type)) {
|
||||||
return file;
|
return file;
|
||||||
} else{
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user