Back

Server Function Storage Limit

  • 0
  • Self Hosted
  • Functions
laurencetroyv
4 Dec, 2024, 15:27

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.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more