[SOLVED] "buckets files create" FUNCTION_EVENT_DATA provides old data even with new file upload
- 0
- Functions
- Storage
Facing this odd issue, I am uploading file to storage and using cloud function to do some transformation on the files and add associated data in a DB collection.
The first file I upload gets correctly processed and I can see correct file details stored in DB however every subsequent file upload triggers the same function but the event data is of the first uploaded file ?? The file in storage bucket is correct but the function still supplies old data.
Make sure you're using req.variables and not the operating system's environment variables
This is what I am using, do I need to go req. variables[`APPWRITE_FUNCTION_EVENT_DATA] ?
Yes, you should use req.variables
Understood let me test and come back
Thanks @Steven that indeed fixes it.
[SOLVED] "buckets files create" FUNCTION_EVENT_DATA provides old data even with new file upload
Recommended threads
- Worker functions stuck on "Fetched 0 fun...
Appwrite Version: 1.9.0 Bug Description: The appwrite-worker-functions container gets stuck in an infinite loop logging "Fetched 0 functions..." while scheduled...
- I am using s3 for app storage but is it ...
_APP_STORAGE_DEVICE=s3 puts everything to the s3 storage but i need to be able to keep the function builds and site in the local and not waste the cloud storage...
- Local Serverless Function Testing: Are D...
I have followed the instructions to get the CLI working, and have been able to log-in, initialize my project, and created a simple Python function, which calls ...