Download file and “open in” dialog on ios

Hi there

From an api I get a link to a pdf or txt file. I would like to download it and generate the “open with” prompt on iOS.

It this possible? How would I approach this?

Thanks
Andreas

Hmmm not sure if it is possible :thinking:… For pdf I would by default use the preview pdf flow function to view it in iOS, have you tried using that?

@Mevi Thanks Mevi, yes, for PDFs that would be a solution, not so for txt files though

I submitted this as a feature request a while back. Please upvote:

2 Likes

For text files you could handle displaying that in your app. You could check for a “.txt” file extension of the filename, and then use a ‘Read File’ flow function to read that into a page variable which you could display in a Text component.