Turns out Microsoft Edge, unlike Safari, can still open local html files. Discovered in this answer. To wit:
- Install Microsoft Edge from the App Store
- Open
Files(or whatever file browsing app you like). - Open the file, then tap the Share button to send to another app.
- Scroll across to "More...", choose Edge, and voila!
Turns out Microsoft Edge, unlike Safari, can still open local html files. Discovered in this answer. To wit:
- Install Microsoft Edge from the App Store
- Open
Files(or whatever file browsing app you like). - Open the file, then tap the Share button to send to another app.
- Scroll across to "More...", choose Edge, and voila!
I had the same issue today on ios15.
There is a free app called Koder available on the App Store which will let you edit and view the HTML file. I’m no expert but the editor looks pretty fully featured at first glance.

Trying to open a file in Safari on iPad mini - iPhone, iPad, iPod Forums at iMore.com
Trying to open a file in Safari on iPad mini | iMore
Does anyone know how to open these files on iPhone?
Opening local .html files on iPad - Apple Community
Videos
I have an HTML file in iCloud that I want to open in an iPad browser. I don't see any options in Safari. Is there a URL address bar syntax like "File///"? Browsers are not available in "share" from Apple "Files".
(more info below...)
When I click on the file, the Readdle browser is pre-empting Safari. If I could figure out how to open the file directly from Safari or Brave, my problems would be solved. The Readdle browser doesn't show an "address" for the file when it's opened, so I can't copy it. I can't just delete Readdle without moving a bunch of files around etc. (I used Readdle before "Files" was added.)
I have "a-Shell" installed, but it won't let me access system files.
By CMS open local files, I presume you mean that you want the CMS to supply a file system type URI to the browser, that is compatible with all the browsers in your environment.
If that is the case then what Chopper3 said should work.
If you really want the CMS to open files - i.e. serve up URLs to locally stored files, then you will have a bigger challenge, as this may well be different depending on where the browser is running - e.g. same machine as CMS/Web Server or other machines.
file:// is considered a security threat by some and as a result will not work in some browsers. In Safari a manually typed link to file:///Users/me/file.jpg will work but it will not work in a link tag in your code.
I want to read this file but it is in HTML text format and won’t do anything and my google drive won’t load it either
I do it using the 'Notes' app on my iphone. Quick and free download.
I emailed the file to myself, then opened it on my phone via email. Inside the email, I clicked the html file. This opened it. I then clicked the download button on the top right of my particular iphone. After that I clicked "Add to Notes".
Inside the notes app, my html file is there and also all functions work as there is also javascript involved.
Once the page is opened on your iPhone all you have to do is tap the Sharing icon, middle icon on bottom, and select 'Add to Home Screen'
If you want to load an html file that you've created on you Mac to your iPhone you'll need to do the following. From System Prefs > Sharing > Enable Web Sharing. Place the html file in your ~/Sites folder. Go the the URL listed in the Web Sharing panel from your iPhone, while on the home network, and open the html file. It will load in Mobile Safari.
If you want this to stay on your iPhone you'll need to have the page written in html5 and have a properly setup CACHE MANIFEST. This includes the appropriate tag in the html file and have the proper manifest file. Then you can follow the first step and add it to your home screen and always have it on your iPhone.
Since the files are always local to the app in iOS. You can't open a html with apps like Safari and Chrome to load associated assets (js/images/css).
However, You could use apps like Documents to upload the folder and open in app browser (uiwebview).
Should work if the URL to assets in the html are relative.
You can create Web Apps for offline viewing by adding them to the home screen. To do this the web page must be written using HTML5 Offline Application Cache. See the below link for further details.
https://developer.apple.com/library/safari/documentation/iPhone/Conceptual/SafariJSDatabaseGuide/OfflineApplicationCache/OfflineApplicationCache.html
That option is located in the Safari Preferences dialog.
in Safari go to the Safari menu and select Preferences.
If it is not already selected click on the General icon in the top left of the Preferences dialog.
At the very bottom there should be a checkbox (likely unchecked) that says "Open "safe" files after downloading." Check that box and you should be good to go.
There are several aspects to the behavior you are describing. First, you should know that the "Open" vs "Save" behavior is not strictly controlled by the Operating System; it is a function of the application and the source of the file. For example, you mentioned GMail... there are many different ways to configure GMail, but in my setup, hovering the pointer over a mail attachment yields a choice of Save to Drive (i.e. Google Drive), or Download. In the Chrome browser's Settings, Advanced menu, you will find options to specify both the download location, and whether or not the file will be opened after download. You'll find similar settings for Firefox, and for Safari (as pointed out in @SteveChambers answer).
Also, as @jmh pointed out in his comment, a "right click"/control click will yield a context-sensitive menu that may offer choices such as Open and Save As..., depending upon the type of document it is, and how the web page was coded.
It seems that you may be laboring under a misconception. By that, I mean you seem to feel that Microsoft is not saving the file before you open it. Let me assure you that Microsoft is saving the file before you open it. Microsoft may be saving the file to a temporary location (I'll explain that in a moment), but they are saving it - that is, it exists on your hard drive somewhere, and it was downloaded.
And so, if you wish to "do it like Microsoft does" on your Mac, you might try this:
If you're using Safari as your web browser, you can configure it as outlined in @SteveChambers answer; i.e. open the file after download. Likewise, these same settings are available in Chrome and in Firefox (and likely any other browser you'll encounter).
You can change the default location for Downloads . Generally all the browsers (Firefox, Chrome, Safari) default saving downloaded files to the folder
~/Downloads- a folder you will see in your Dock. Files you download to this folder will remain there until you manually delete them. However, if you specify/tmp(a "temporary" folder) as the default location for downloaded files, these downloads will be deleted when your system restarts.
One caveat you should be aware of: If you elect to use /tmp, you should NOT go into /tmp and manually delete files. Let the OS take care of the cleanup.
Hope this helps... transitioning to a new OS means re-learning some things, but at the end of the day, they often do the same things, but called by a different name. Such is the case with "Open" and "Download".