Rob--W / open-in-browser

A browser extension that offers the ability to open files directly in the browser instead of downloading them.
Other
88 stars 16 forks source link

Unable to get working #80

Closed jeff-hykin closed 8 months ago

jeff-hykin commented 8 months ago

I think I might be missing something as I simply never get a pop up or any kind of change in behavior.

I tried pasting a local file:///some.csv file into the URL and also tried having a local csv file as a href in an anchor tag. Both just immedately get the default download-or-open prompt. Neither accepting or refusing the prompt triggers the open-in-browser extension.

Rob--W commented 8 months ago

The extension only works with http(s) URLs, not with file:-URLs.

If you want to view a file inline, you could consider adding view-source: in front of the URL. E.g. view-source:file:///tmp/some.csv

jeff-hykin commented 8 months ago

Thank you! That's exactly what I needed