How can I add a direct link to download a file and open it inside the app ios

Hello guys
I made a project and put inside a direct download link for a file, and when I tried the app on iPhone (ios), the inside information of the file appeared (reading) the file, but I couldn’t save it or share it with another app on iPhone (iOS)
Please help, as I need this method

@rahalteamdesertmapsq what type of file is it? (Image? Pdf?)
Where are you downloading it from?

Thank you my friend for the reply
file type xml

Download from a link and then share a specific application, and I do not want it to open in an external browser

I need some information if possible