On my iPad/iPhone, I have been searching for a solution for viewing text files from websites that do not offer a .txt extension when clicking to view a document. A filename is provided, but without any extension. Safari will download the file but not view the file. Saving the file to downloads and attempting to open in Files app doesn't work, because Files app won't let me rename the D/L to add a .txt extension / file type.
Up until today, my workaround was to copy the downloaded file from Files to the DropBox app, which does let me rename the file and view it. Unfortunately, it's a lot of extra steps, which take an excessive amount of time to complete. And I have to do this a lot. :-(
Today, I managed to make a Shortcut that lets me view the file after downloading. It is still an imperfect solution. I'd like some help with the following two desired behaviors / enhancements.
I would like the Shortcut to be a top-level choice in the Files app actions. So far I have only been able to add the shortcut to the Share menu, so it's an extra step to access. I did already set the "Show in Share Sheet" and "Use As Quick Action" but the latter is under a "Mac" heading, which I take to mean won't be applicable on iPad.
I would like to be able to long-press on the link and have the shortcut view the contents of the file, directly, without having to download and switch to the Files app. I can invoke my Shortcut from Safari, but it doesn't show the contents of the (untyped) text file, it just shows the download URL. Perhaps I need an altogether different Shortcut for this use case?
Here is the shortcut:
[View as Text Shortcut] (https://www.icloud.com/shortcuts/164de95d38eb41e5945411bf50473427)
For the input types, I chose, the following:
- Rich Text
- Safari web pages
Anyone have a solution to the above two "enhancements" or a better overall solution? Thanks in advance.