CorentinTh / enclosed

Minimalistic web app designed for sending private and secure notes.
https://enclosed.cc
Apache License 2.0
682 stars 51 forks source link

Error 500 when trying to upload a 30mb file to public instance #337

Open Zoobdude opened 3 days ago

Zoobdude commented 3 days ago

Describe the bug

I attempted to upload a 30mb file (should be below file limit) to the public enclosed.cc instance which fails with a error 500.

What happened?

I generated a 30 mb file using Powershell fsutil: fsutil file createnew ./30mb.txt 30000000

image

Then attempted to upload to the public instance and received this error:

image image

This is not the expected 413 (Payload Too Large) error if the uploaded file is too large.

When testing in a local development environment this is not an issue and the same 30 mb file uploads successfully.

System information

Windows 10 Chrome Version 130.0.6723.117 (Official Build) (64-bit)

Where did you encounter the bug?

Public app (enclosed.cc)

CorentinTh commented 3 days ago

Hi @Zoobdude Thanks for the report I reproduced and the culprit is the Cloudflare KV store that limits the values to 25Mib (source)

KV PUT failed: 413 Value length of 41943339 exceeds limit of 26214400.

So what next ?