mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 18:04:39 -05:00
Adjust max image size limit (#2721)
This commit is contained in:
parent
d576a3f7b4
commit
4723dabdf5
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user