How can I open these .docx files from Chrome more quickly?

5,924

Solution 1

.do is a web extension, not the file you are after downloading. In this case the link you are clicking that ends in .do should be pushing the docx but your browser is being handed the .do file itself.

You can test this by opening the developer tools (menu, tools, developer tools) then click on the timeline tab. When you click the link for your file you should get a delivery code of 200 (success) and the file name that was delivered. In this case it will be the .do file.

Short version: The file being delivered is .do instead of .docx. You can try renaming to .docx, but we have no way of knowing if that will do anything for you as we don't know what is actually being delivered.

Solution 2

The issue of "opening" files without having to save them first has been under discussion since 2009. There's currently no simple way to do it.

The closest you can get is to instruct Chrome to automatically open files of a certain type after saving them:

Always Open Files of This Type - Chromium

As long as you haven't configured Chrome to ask where to save each file, this should allow you to view the documents with one click.

There are still two annoyances with this approach:

  • Your downloads folder will become cluttered.
  • A blank window will appear every time you download a file.

You can mitigate the latter by middle-clicking (or Ctrl+clicking) the links to open new tabs instead; Chrome will close the empty tabs automatically.

Share:
5,924

Related videos on Youtube

Pablo Viollier
Author by

Pablo Viollier

Updated on September 18, 2022

Comments

  • Pablo Viollier
    Pablo Viollier almost 2 years

    This is a very specific question. I'm a lawyer from Chile, the thing is we use a webpage to check on the state of our judiciary cases.

    The problem when I started using Ubuntu (and Chromium) is that when I clicked a word document in the web-portal it didn't give me the option is viewing it in the browser. Moreover, it gave me the option of downloading it, but the extension of the file instead of being .docx was .do by default (and the file name is always DownloadFile.do). It took me a while to figure out that if I added the .docx to .do I could download and open the word document (which is a lot of trouble considering the number of files I need to check constantly and not save in my PC). PDF documents could downloaded correctly, but no opened in the browser.

    screenshot

    I thought that using Chrome instead of Chromium would fix the problem, but it only helped with the PDF files, not the .docx ones.

    If you wish to try the website and check the problem, either go directly to this page or browse from http://civil.poderjudicial.cl/ by entering "Rol Interno: C-18271-2011" and "Tribunal de Origen: 4° Juzgado Civil de San Miguel" (at the bottom) and then clicking "Consulta". Don't worry, this information is public and I'm only using it as an example so you can help me with the .do files.

    • Sparhawk
      Sparhawk about 11 years
      You cannot open docx files in browsers generally. Did you used to be able to do this at some point? Or are you talking about opening it with a web-based application such as Google Docs or the online-based Microsoft cloud platform?
    • Pablo Viollier
      Pablo Viollier about 11 years
      When I used windows and clicked the file it gave me the option to "open" the file and not only download it. That way I could open it whith Office and didn't need to save it.
    • Sparhawk
      Sparhawk about 11 years
      Ah, I misunderstood. You don't want docx files to open and display within the browser, but you want the browser to pass the file to Libreoffice, and open it there. I tried the above webpage in Chromium and Firefox and they are all named document.do as you say. Nevertheless, on my system, they were recognised as Libreoffice files. Firefox automatically opened it, and Chromium saved it. However, I then could double-click on the file in the download manager, and it opened from Chromium.
    • Sparhawk
      Sparhawk about 11 years
      I'm not sure how to make Chromium automatically open files, but there should be a way? Otherwise, an alternative might be to use Firefox.
    • Sparhawk
      Sparhawk about 11 years
      @ændrük, having said that, my system automatically opens them in Libreoffice, so they can be recognised without greasemonkey, etc.
    • RusGraf
      RusGraf about 11 years
      @Sparhawk Oops, I misunderstood the problem, too.
  • Pablo Viollier
    Pablo Viollier about 11 years
    Is there some way I don't need to rename the file to .docx every time? What's the reason Windows users don't need to do it?
  • Bhavin Doshi
    Bhavin Doshi about 11 years
    Usually Ubuntu also does not require the renaming, as the chromium would download the file with correct extension. I don't understand why in your case it should download it with different extension. I don't know the fix, but I suggested a workaround.
  • Sparhawk
    Sparhawk about 11 years
    As I stated in the comments on the question, the website itself provides file.do with incorrect suffixes.
  • Sparhawk
    Sparhawk about 11 years
    As above, my system automatically opens them in Libreoffice without renaming them manually, so it's definitely possible. (I use Firefox + Kubuntu.) It also works with xdg-open, which might be desktop-environment agnostic? (Not sure.)
  • Bhavin Doshi
    Bhavin Doshi about 11 years
    @PabloViollier Make sure you accept a response as an answer to your question! The discussion here across answers seems to be saying the same thing.
  • Sparhawk
    Sparhawk about 11 years
    +1, but I guess the real answer is "use Firefox". :p
  • Sparhawk
    Sparhawk about 11 years
    I disagree. I think you have misunderstood the question.