Maybe it is a restriction as you’ve mentioned. You could try to copy the file first to the local Scriptable cache/temporary folder and open it from there. After closing the WebView you could then delete the temporary file.
I will have a look at those.
I was using FileManger before to access iCloud but realised I could use the picker instead which gave more latitude.
I will look at a way to incorporate FileManger but the copy part will not work for my use case.
The Html file points to a special directory that has all its runtime code and assets, copping all of that would not be a good idea in practice.
Ah, that might be the reason. iOS allows Scriptable access to the HTML file, but not the others. Scriptable is trying to access them, but can’t and therefore it probably hangs somewhere. It probably works in iCloud Drive, because the restrictions aren’t that strict there (only the user has copied the files there and there is no app data), whereas in the local file section there might be other data the user has no control of and therefore it is more restricted.
This is only an assumption. I might be totally wrong.