Allow images on frontend

This commit is contained in:
2025-07-27 00:09:30 -04:00
parent 8d357ec249
commit 157c9b188b

View File

@ -51,12 +51,17 @@ export default function () {
const [uploading, setUploading] = useState(false);
const [loading, setLoading] = useState(false);
const fileTypes: { [k: string]: string } = {
avif: "image/avif",
gif: "image/gif",
jpg: "image/jpeg",
jpeg: "image/jpeg",
m4v: "video/x-m4v",
mkv: "video/x-matroska",
mov: "video/mp4",
mp4: "video/mp4",
png: "image/png",
webm: "video/webm",
webp: "image/webp",
wmv: "video/x-ms-wmv",
};