
In my web app when user upload some files I should get notified. How can I do that ??????

You can trigger Function
attached to a specific event
.
Here the event could be: buckets.[1].create
where [1]
is your bucket name.
In the function's body, you can send an email or a push notification to your device.

Hi, you will need to create a function as mentioned in the above message but there are more ways to do this - for example getting URL of file and then triggering function (which I assume is what your app might be doing)?
push notifications example:https://github.com/open-runtimes/examples/tree/main/dart/send_push_notification
Take a look here for messaging API : https://github.com/appwrite/appwrite/issues/4968

@Mosh Ontong and @Binyamin could you guys help me how to do that

Thank you but I couldn't understand that

First You'll need to do as @darShan and add event trigger to your function by bucket For that you can read:
Storage events - https://appwrite.io/docs/events#storage-events Function - https://appwrite.io/docs/functions
After that you can use @joeyouss example to send a push notification when your function is being triggered

It depends on the scenario I guess, you can utilize the functions or the realtime event. But if the needed is something like push notification, you can use the function feature of appwrite then. Or else if the needed is when the user is uploaded files and you need to notify your application to update the UI, then you can use the realtime

the user doesnt need to get notified , It should notify me

Can you provide the gist

@Mosh Ontong please help me
Recommended threads
- Is it possible to getRow with all relati...
With the new Opt-In relationship loading, is it possible to query getRow to get all attributes and relationships and possibly even cascading relationships? I tr...
- TableDB.getRow() response does not conta...
This is for Web/React sdk 20.0.0 The row was created via `TableDB.createRow(...)` and I can see it in the console with the relationships correctly set. In the c...
- Permissions for bulk operation
Hi team, I have a question: “In the databases.createDocuments bulk API, can I set document-level permissions? If yes, how exactly should I include the permissio...
