this post was submitted on 12 Jul 2025
31 points (100.0% liked)

Firefox

5574 readers
41 users here now

A community for discussion about Mozilla Firefox.

founded 2 years ago
MODERATORS
 

I've got an HTML file on my phone, and would like to view it. But Firefox on Android has neither a menu entry "Open File", nor does using the file:// method work, nor is any app associated with the .html file extension.

BTW, Chrome suffers from the same problem. And it is not an issue with the file, it works when opened via the https:// method from my home server.

Why, oh why, can't I open a local file on Android?

you are viewing a single comment's thread
view the rest of the comments
[–] muntedcrocodile@hilariouschaos.com 7 points 1 day ago (3 children)

Android file permissions. Android grants access to a specific subdirectory for each app. So u need to go to file:///somedirpath/urfile.html

U might also be able to grant full file access to ff but I would say that's a huge security risk. Alternatively u could serve the file dir with python from termux.

[–] Treczoks@lemmy.world 5 points 1 day ago (2 children)

Of course I entered the full file path, not just the method. Firefox did not recognize "file" as a method, to start with.

[–] nebulaone@lemmy.world 3 points 1 day ago (1 children)
[–] Treczoks@lemmy.world 2 points 20 hours ago

You are right, it was triple slash, but it does not work anyway, as it already balks at "file".