Update upload.js

This commit is contained in:
Eduard Prigoana 2026-02-21 18:19:50 +02:00 committed by GitHub
parent b05166efa5
commit 3528b49d64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,12 +42,12 @@ export async function onRequest(context) {
});
}
const maxSize = 10 * 1024 * 1024;
const maxSize = 500 * 1024 * 1024;
if (file.size > maxSize) {
return new Response(
JSON.stringify({
error: 'File size exceeds 10MB limit',
error: 'File size exceeds 500MB limit',
size: file.size,
}),
{