Back

Body exceeded 1mb limit

  • 0
  • Functions
wintercounter✌🏼
8 Oct, 2023, 14:23

How can I increase the body limit? I need to send base64 image to a function.

TL;DR
Issue: The user is facing an issue where their file exceeds the 1MB limit for functions and they need to find a solution to pass a base64 image to a function without storing it anywhere. Solution: Instead of sending the image directly to the function, it is recommended to use Appwrite storage. By using Appwrite storage, you can avoid the file size limit and securely pass the base64 image to the 3rd party API.
Drake
8 Oct, 2023, 14:27

The best thing to do is use Appwrite storage instead of sending an image directly to a function

wintercounter✌🏼
8 Oct, 2023, 15:43

Yeah, but I don't want to store anywhere. I need to pass it to another 3rd party API

Drake
8 Oct, 2023, 18:29

Download the file from storage in the function

wintercounter✌🏼
8 Oct, 2023, 18:49

it's what i'm doing now, but it's just a workaround. it's less than ideal to upload, run function and then delete

Drake
8 Oct, 2023, 23:19

How about executing the function automatically on upload?

wintercounter✌🏼
9 Oct, 2023, 07:54

I still need to store the file unnecessarily then, don't I?

Drake
9 Oct, 2023, 19:11

it is necessary because functions doesn't support large file inputs

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