Shortcuts - Saving a file to specific folder that is NOT ‘/shortcuts/‘

I’m trying to create a shortcut from the sharesheet to save a file to particular iCloud Drive/Files folder. However within the options for the ‘save file’ action in shortcuts only allows me to save into the directory ‘/shortcuts/‘. How do I change this so that I can specify a file path that is not within ‘/shortcuts/‘?

enter image description here


Solution 1:

You can't access files outside /Shortcuts/ on purpose, it's called sandboxing and makes sure that your iCloud data is safe!

As a matter of fact, it used to be possible to trick Shortcuts.app with a relative path (e.g. /Shortcuts/../../hiddenData/), but that security problem (CVE-2019-7289) was fixed in February 2019: release notes

Solution 2:

You can save files to folders on iPhone/iPad in the latest version of Shortcuts. Using Save File under the Documents Actions and enable Ask Where to Save. You can also save using Share under the Share Actions.