[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
- Functions page just got frozen when I tr...
Does someone know why this happens? would really appreaciate any help
- Github push not triggering function depl...
I'm using appwrite cloud instance and connected my github account to appwrite successfully. I also configured the git settings of my appwrite functions. however...
- Python Flask Project Deploy
I am trying to deploy a Python Project works with Flask on Appwrite, but this is not working, domain shows 500 Error and Logs for any execution is not loading ...
