Update upload.js
This commit is contained in:
parent
b05166efa5
commit
3528b49d64
1 changed files with 2 additions and 2 deletions
|
|
@ -42,12 +42,12 @@ export async function onRequest(context) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const maxSize = 10 * 1024 * 1024;
|
const maxSize = 500 * 1024 * 1024;
|
||||||
|
|
||||||
if (file.size > maxSize) {
|
if (file.size > maxSize) {
|
||||||
return new Response(
|
return new Response(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
error: 'File size exceeds 10MB limit',
|
error: 'File size exceeds 500MB limit',
|
||||||
size: file.size,
|
size: file.size,
|
||||||
}),
|
}),
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue