Check out the app Workflow.
Stuff like this and a whole lot more is enabled with it. It really transforms iOS into almost a desktop equivilent device; you just have to come at things slightly different.
I’d highly recommend checking out the site macstories.net and the Canvas podcast - lots of iOS power user stuff there - here’s a great post that summarizes all the workflow related episodes to give you a taste of what is trivial to unlock with Workflow: https://www.macstories.net/linked/canvas-episode-29-workflow-magic-variables.
Being able to do things like save an MP3 directly to my library, save a web page as a PDF, download a file to dropbox or iCloud drive were the original reasons I was interested in Workflow. Once you start playing with it, you quickly start using it for lots of other stuff too!
Opener is another app that might be able to do that too - I started with it, but it’s pretty basic in what it offers.
Workflow was a significant factor in my decision to refresh my Macbook Pro with an iPad Pro instead of another laptop - it’s that good