Clicking text links wants to save
-
Helvetica2 last edited by
Hi everyone, I am a new Opera user. My current version is 67.0.3575.115 and I use Windows 7 Pro.
I have a large website which serves as a (html driven) database of ancient coins. Entries are listed in four columns (using <tr><td>...</td>.. etc. as
Reference number - description of coin - "Text" = link to the text file - "Image" = link to the image.
I usually work with the files on my harddisk, and Opera can see the pages as e.g.
file:///V:/wildwinds_web_site/ric/annia_faustina/i.html
Using the files on my harddisk with Opera, it opens the images when I click on the "Image" link, but when I click on the "Text" link, it opens the "Save As" window, instead of showing me the text.
This happens on all the pages of my website when I am working with the files on my harddisk (Not when I use the files www....com online files).Is there a setting that I need to change ? I need to check dozens of texts every day and don't want to spend time having to close the "Save As" window every time I need to see a text file.
-
leocg Moderator Volunteer last edited by
@helvetica2 Current Opera version is 78, you should upgrade.
-
leocg Moderator Volunteer last edited by leocg
@helvetica2 What is the text file format? How is the behavior in other Chromium based browsers?
-
Helvetica2 last edited by
@leocg
In Firefox the text opens as it should.
In Cliqz the text opens as it should.
In Chrome it wants to save
In Internet Explorer 11 it asks me whether I want to open it or save it.In the html file of an example coin (empress Annia Faustina page, ref. RIC 232), the text is linked to in the line
<TR><TD bgcolor="#C0C0C0">RIC 232</td><td>Annia Faustina. AD 221. AR Denarius 3.23 g. Rome mint. Struck under Elagabalus. ANNIA FAVSTINA AVG, bare-headed and draped bust right / CONCORDIA, Elagabalus, laureate and togate, and Annia Faustina, diademed and draped, standing facing each other, clasping right hands; star between them. RIC IV 232 (Elagabalus); RSC 1. </td><td><A HREF="RIC_232.txt">Text</A></td><td><A HREF="RIC_232.jpg">Image</A></td></TR>
The actual text file of RIC 232: (it is in plain text)
Annia Faustina. AD 221. AR Denarius 3.23 g. Rome mint. Struck under Elagabalus. ANNIA FAVSTINA AVG, bare-headed and draped bust right. CONCORDIA, Elagabalus, laureate and togate, and Annia Faustina, diademed and draped, standing vis-à-vis, clasping right hands; star between them. RIC IV 232 (Elagabalus); RSC 1. Extremely rare, the fifth and probably the finest known. CNG Triton XII auction, lot 704. Sold for $62,500 Used with permission of CNG coins, www.cngcoins.com, July 2009
It would be impossible to change anything in the actual files - there are over 80,000 text files for coin entries on my website!.
So it seems that Chrome-based browsers handle text files differently that Firefox-based browsers. -
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.
-