Back

Error Msg: Http invalid protocol\nError Cod / \nError Code: 413

  • 0
  • Self Hosted
  • Functions
A
8 Feb, 2025, 13:59

Hi, I am trying to upload large files to Appwrite in chunks. The code: Receives a file (Base64 encoded) and its name via a JSON payload. Decodes the Base64 data and saves it as a temporary file. Splits the file into smaller chunks (5MB). Uploads each chunk to Appwrite Storage using the create_file method. Cleans up temporary files after processing.

Unfortunatelly, I am getting 2 errors:

An internal curl error has occurred within the executor! Error Msg: Http invalid protocol\nError Code: 500

or

\nError Code: 413

Can you help me?

TL;DR
The developer is encountering errors (Error Codes 500 or 413) when trying to upload large files to Appwrite in chunks. The issue may be related to encoding, chunk size, or server configuration. To troubleshoot, they can try adjusting the chunk size, checking the encoding process, or verifying server settings related to file upload limits.
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