[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
- router_deployment_not_found
I updated my function a few times and now i am getting the error: router_deployment_not_found I even reverted back to my original code but i am still getting th...
- Cloud function deploy stucks in processi...
Been trying for the last hours to deploy my function but for whatever reason, alwasy stuck on processing!
- [SOLVED] curl error Number: 6 — function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...