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
[–] 7 points 1 year 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.

  • source
  • hideshow 3 child comments
  • [–] [S] 5 points 1 year 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.

  • source
  • parent
  • hideshow 2 child comments