change max size to 100mb as thats the maximum allowed by CF workers

This commit is contained in:
Eduard Prigoana 2026-02-22 18:21:55 +02:00 committed by GitHub
parent 6b55fd4c7a
commit e941d3ebfa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,8 +38,8 @@ export async function onRequest(context) {
const uploaded = form.get('file');
if (!uploaded) return jsonError('No file provided', 400);
if (uploaded.size > 500 * 1024 * 1024) {
return jsonError('File exceeds 500MB', 400);
if (uploaded.size > 100 * 1024 * 1024) {
return jsonError('File exceeds 100MB', 400);
}
file = await uploaded.arrayBuffer();