mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-30 23:27:55 -05:00
Adjust max image size limit (#2721)
This commit is contained in:
@@ -86,7 +86,12 @@ export const action: ActionFunction = async ({ request }) => {
|
||||
return null;
|
||||
};
|
||||
|
||||
const formData = await parseMultipartFormData(request, uploadHandler);
|
||||
const formData = await parseMultipartFormData(
|
||||
request,
|
||||
// 5MB
|
||||
{ maxFileSize: 5 * 1024 * 1024 },
|
||||
uploadHandler,
|
||||
);
|
||||
const imgSrc = formData.get("img") as string | null;
|
||||
invariant(imgSrc);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user