I want to upload a file and get a download link that can be used on the server-side to be handed as a non blob link to download application

Hi I have an application that eventually transcribes videos. It can take media links like youtube or rumble etc and it can also handle file links.

I would like to use my anvil app as a file uploader and then create a traditional link to the temporarily uploaded file for purposes of immediately passing that link to my existing code (which expects a traditional https:// link).

If I use the TempURL code to get a ‘url’ - I get a blob object that browser can handle but a standard link expecting app cannot handle. Is there a way to get a standard non blob link for my purposes?

Thank you,

JM

Code Sample:

# this is a formatted code snippet.
# paste your code between ``` 

Clone link:
share a copy of your app

Something similar was just recently asked so I will link to it:

What you will probably want to do is have your file sent to the server to be stored somewhere (like a data table) and then use an HTTP endpoint to retrieve the file and serve it your your other application using a link to the endpoint:

Also,

If this is running on another machine, you should probably look into using anvil-uplink instead, but if “your code” is running the client browser and anvil is just embedded in the page then I don’t think you will be able to get a “link” any other way.

2 Likes