6

There are other questions on this same topic, but I'm finding that on 4.0.4 with my HTC One, I can open file:/// URLs just fine with Firefox, but not with Chrome or the Android browser. Those two simply report a security error and show no content.

Is this something that changed since the 2.x era when it was apparently possible? (edit well I realize there was no Chrome for 2.x but ...)

4

1 Answer 1

3

The issue was user error stemming from the less-than-obvious way the Android OS file system works. Everything visible in the file system is under a top-level (the real top) directory called "sdcard". Thus, file:/// URLs only work for paths like file:///sdcard/foo/bar.

I'll add with questionable relevance that if you haven't installed the app "AirDroid", you should. I found it while looking around for answers to a related problem.

4
  • I get: "Access to the file was denied" for the extSdCard. Feb 12, 2016 at 18:20
  • what path must one use for internal storage?? Feb 3, 2017 at 10:58
  • @FedorSteeman it's in the answer above.
    – Pointy
    Feb 3, 2017 at 13:28
  • thanks. I was getting confused over the fact that my unit didn't have an sd card, so it didn't make sense to me to go to the "sdcard". Feb 3, 2017 at 14:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .