How to sync new upload files URL to my database with Tigris? - Tigris

How to sync new upload files URL to my database with Tigris?

Hey I have set up file upload on my app, it works well but I’m not an expert with that. At work with AWS, every time a user uploads to S3 it triggers a Lambda function to update our DB with the new upload file.

How can I achieve this with Tigris?

Should I do it this way?

My app uses Bun, Hono and Turso btw.

I like Fly and Tigris, really easy to use

Solution

Should I do it this way?

That's one way to do it.

Another way is to have an upload server that you upload files to, then the server processes the file and uploads to Tigris.

Ingress bandwidth is free and egress bandwidth to Tigris is free so you won’t pay any extra in bandwidth, only for server costs. Using autostop/autostart you can reduce server costs further.

Solution

King Billy Riceβ€’1/21/26, 3:00 PM

That's one way to do it.

Another way is to have an upload server that you upload files to, then the server processes the file and uploads to Tigris.

Prof. Hertha Jacobson OPβ€’1/21/26, 3:00 PM

It is great to hear that you like Fly and Tigris

You can achieve it the way you have mentioned, or what someone has suggested.

We are working on a feature specifically for this type of use case Object Notifications. That would allow you to register a webhook that can then be configured to be called anytime an object is uploaded.