Opening link of generated Csv file display file contents on Safari

I have an action that generates a csv file and then opens the link …

Untitled

On Chrome it downloads the file into the Download directory. On Safari it just opens the file in a new tab. Is there something I can do to make Safari do the download. Thinking changing the link in some expression and then using it. It would be ideal if I did not have to do a case statement on the browser type.

Thanks

Is this related to settings in Safari?

Maybe, It does open a tab that shows the contents of the file. On an iPhone it does nothing.

I think I might have to wrap it in some html. Which I have no idea how to do!

Related to the original post, these files get created, use some disk up somewhere. How does Glide know when to get rid of them. If I clear the link after I am done does it remove them from storage.

I have no idea, hopefully someone else can chime in.

I believe Glide removes the file from storage 30 days after your clear the link.

Glide Docs → Files

Thanks. I did learn this for Safari. As an example it opens a tab with this:

Untitled

If you right click on the page anywhere Safari will put up a menu that allows you to save the page. You do this and it saves it in a csv file. Weird but a work around for now.

1 Like

It’s a Safari thing. They don’t allow direct downloading, you can only right click and select “Download Linked File” as far as I aware. Not even <a> tag with download attribute works.

1 Like

I have tested it on my iPhone again, i had the code clearing the link and so I put a wait prior to the clear and now the phone lets me open it in excel or alternatively it will let me share it. Perfectly acceptable now.

Thank you for your input it was helpful.

1 Like

So does opening the link download the CSV file now? Or is there still a workaround?

The iPhone works properly. I thought I had tried the iPhone with the code that I posted above and it never worked (but who knows sometimes the brain just flows itself :grinning:). This code

works on iPhone. It seems to bring up some url (storage.googleapis.com) that handles the download. So it is all good.

Safari on my computer, I just use the work around I mentioned above.

Sorry about the confusion.

Thanks
Gary

Oh, so Safari on Mac still doesn’t work. I tried it many times yesterday and it’s still opening the CSV in the browser. Thank you for sharing.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.