https://discord.gg/botpress logo
event File does not contain file id
# 🤝help
f
According to the docs the event of type File does not contain its file id. But why? I would like to process the uploaded file and afterwards delete it. But since I don't know the file id this seems impossible do achieve.
This link above should be helpful to find the file IDs.
and will include this one too !
f
Ok so the only identifier to match the files from the event to the file list I can utilize is the url then. Seems not very elegant to me. But will work for now.
l
I apologize for the lack of elegance.
If there is anything else I can assist you with in the future, do not hesitate to ping me 🫡
w
the
{{event.payload.fileUrl}}
variable has the url of the file that was just uploaded
or imageUrl for images
2 Views