Get the url from a document

My problem:

After uploading a file to my supabase bucket, i don’t know how to get the url of this file to then update a row in my backend

My workflow

Share the output returned by the last node

Information on your n8n setup

  • **n8n version:**Community
  • **Database (default: SQLite):**Supabase
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):**self-host
  • **Operating system:**Windows 11

Hey @Yann_Prigent, good question! Could you share an example url from a file? There might be a way to reconstruct it using the node output.

This is the url generated for the file uploaded in my bucket by supabase:
https://wyrayxvfghzepkjtkgca.supabase.co/storage/v1/object/public/users/dac4ba9a-cf62-4d8a-b1a8-68c8254d6831/doc_transac_signed/transactions-tx_qElPGYLVQ2MX

@Ludwig it seems that the difference is just that public is appended between …object/ and /users…
I will try if it works and i let you know.
Thanks for making me write the url… hahaha

2 Likes

All good it works, it was “just” that, thanks for your time @Ludwig
Hope it can helps others …
Have a great day!

Love to hear it! Happy building!

1 Like