add an upload type with size constraints and acceptable file types
This commit is contained in:
1 parent
091c36cbf3
commit
0ca738b080
1 file changed
+5
@@ -0,0 +1,5 @@
|
||||
// Shared constraints for user supplied image uploads
|
||||
export const ImageMimeTypes = ["image/jpeg", "image/png", "image/jpg"] as const;
|
||||
export type ImageMimeType = (typeof ImageMimeTypes)[number];
|
||||
|
||||
export const MAX_IMAGE_SIZE_BYTES = 3 * 1024 * 1024; // 3MB
|
||||
Reference in new issue
Block a user