Clicking text links wants to save
-
Helvetica2 last edited by
I also just tried Waterfox - it opens the text file just like I want it to.
It's a shame that Chrome-based browsers do not give the user any option to force "Open text files in browser window" like you used to be able to do.
So I am afraid that I will have to go back to using Firefox or Waterfox, because to have the txt file open directly in the browser is imperative to me in order for me to be able to work efficiently.
However, if anyone does know of a workaround, I would be happy to hear of it. -
leocg Moderator Volunteer last edited by
@helvetica2 Usually .txt files open in Opera here, unless the site tells the browser to download the file.
-
Helvetica2 last edited by leocg
@leocg Yes it shows the text, when you are online on a website but not when you are using your browser for a local copy of your website which you have stored on your PC.
If anyone wants to try it, simply write a short html file and a text file as follows and save them to your hard disk.
- html file, copy into a text editor and save to your PC as test.html:
<html>
<body>
This is to test the <a href="test_text.txt"> Text file</a>
</body>
</html>- Text file, copy into a text editor and save to the same folder as (1) above, as test_text.txt
What am I doing? Opening or Saving ?
Then open the html file (you can usually drag and drop it into an empty Opera page) and see what the txt file does when you click on the "Text file" link.
On Friday I downloaded and tested several different browsers, some Chrome-based, some Firefox-based. These were all tested with Local html files from my harddisk.
All the Chrome-based browsers wanted to save the file.
All the Firefox-based opened the txt file in the browser.Then I wondered whether it was because my website local files are on a pw-protected NAS. However, I have backups of all my website files on a non-pw-protected, internal harddisk, and a second backup on a non-pw-protected external harddisk. I tested a couple of different html files from both drives in Opera, with the same result, i.e. It wanted to download the .txt file.
-
leocg Moderator Volunteer last edited by
@helvetica2 Here it shows the txt file in Opera, Chrome and Firefox.
-
Helvetica2 last edited by leocg
@leocg Without downloading / saving first ?
I just got off another forum (not browser specific) and asked whether people could try the html and txt file I added above and give the result and their browser name.
17 members tried it. They use Windows 7, 8 and 10. (None use Linux)
8 users who use Chrome, Edge, Opera and Brave replied that it downloaded/saved the file first.
7 users who use Waterfox, Firefox, Pale Moon and Cliqz replied that it opened the text file immediately without saving.
The other two users tried it using Internet Explorer 11, which opened the text file immediately without saving it.
So it can't be something caused by a version of Windows. It may work "properly" on a Linux machine. It can't be the members' settings, otherwise the first group would all have their settings wrong, which would be too much of a coincidence, seeing as the members include programmers, IT folk etc.
One of the members included two snippets of information that he found on the internet:-
*27 Dec 2020 — In Google Chrome, links to local files are
disabled, unlike IE. There is an extension allows you to
open a link to a local file by clicking it.*-
*Google employee says they plan to implement in Chrome
the capability to "open" files basing on their extensions, but
that was in 2010.*So, leocg, seeing as you apparently tested the test.html file in Chrome, can you see anything in your options or settings which they have in fact implemented which allows the direct, immediate opening of local files ? JPG files DO open immediately in my Chrome, just not the txt files.
-
-
Helvetica2 last edited by
@helvetica2 said in Clicking text links wants to save:
@leocg Any idea why it doesn't open directly on my PC ? i.e. why it wants to save it first ?
-
leocg Moderator Volunteer last edited by
@helvetica2 I've noticed that when you download a file in Chrome, there is an option you can enable to always open that kind of file. Couldn't find anything in settings related to it.
-