
Getting an error saying
TypeScript
AppwriteException [Error]: The file size is either not valid or exceeds the maximum allowed size. Please check the file or the value of the _APP_STORAGE_LIMIT environment variable.
at Client.call (C:\Users\laure\CONFIG~1\herd\bin\nvm\v23.2.0\node_modules\appwrite-cli\lib\client.js:211:13)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async uploadChunk (C:\Users\laure\CONFIG~1\herd\bin\nvm\v23.2.0\node_modules\appwrite-cli\lib\commands\functions.js:717:20)
at async functionsCreateDeployment (C:\Users\laure\CONFIG~1\herd\bin\nvm\v23.2.0\node_modules\appwrite-cli\lib\commands\functions.js:744:17) {
code: 400,
response: 'storage_invalid_file_size'
}
Assertion failed: !(handle->flags & UV_HANDLE_CLOSING), file c:\ws\deps\uv\src\win\async.c, line 76
Even though I set in the .env
TypeScript
_APP_STORAGE_LIMIT=300000000
_APP_STORAGE_PREVIEW_LIMIT=300000000
and I did docker compose up -d
TL;DR
Developers encountering an error related to file size exceeding the maximum limit can resolve the issue by ensuring that the _APP_STORAGE_LIMIT and _APP_STORAGE_PREVIEW_LIMIT variables in the .env file are correctly set. Despite setting these limits, the error might persist due to an incorrect configuration.Recommended threads
- Origin error after changing default port...
Hi! I need some help regarding an issue I’m facing with Appwrite after changing the default ports. I have a self-hosted Appwrite instance running on my VPS. I ...
- Opened my website after long time and Ba...
I built a website around a year back and and used appwrite for making the backend. At that time the website was working fine but now when i open it the images a...
- custom requirements.txt file
How do I specify a custom requirements.txt file when creating a serverless function through the Appwrite console?
