Opening Local HTML Files in Firefox under Android 6.0 (Marshmallow)

I use a local HTML file on all of my computing devices which lists all my frequently-used web sites on a multi-column page, with the individual entries being organized in categories. My new smartphone runs Android 6.0 which, for some reason seems to dislike opening the local HTML file in my favourite web browser, Mozilla Firefox.

The error message “Access to the file was denied” was displayed in lieu of my carefully-crafted menu page. The associated text went on to suggest that “The file… is not readable. It may have been removed, moved, or file permissions may be preventing access. ERR_ACCESS_DENIED”.

It runs out that the latter issue is the problem. The fix is fairly simple. Load Android’s “Settings” menu and navigate to “Apps”. Scroll down to “Firefox”. Tap the Firefox listing to bring up the “App Info” screen. Click on the “Permissions” option, and slide the control for “Storage” to the right to enable file permissions.

Firefox can now open the local HTML file stored, in my case, on the smartphone’s supplementary SDcard.

References:

Requesting Permissions at Run Time
https://developer.android.com/training/permissions/requesting.html

Advertisements
This entry was posted in Android, Applications and tagged , . Bookmark the permalink.

One Response to Opening Local HTML Files in Firefox under Android 6.0 (Marshmallow)

  1. Dainiasas says:

    Thank you! I’ve found that it also applies to uploading captured file in html5 ( ).
    And in that “permissions” tab was also a permission to use phone’s camera as file source.
    You saved me a lot of time!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s