rejetto forum

Documents view in browser

0 Members and 1 Guest are viewing this topic.

Offline JonJonBravo

  • Occasional poster
  • *
    • Posts: 11
    • View Profile
Hi all. It is necessary that documents on the local network open in a new window instead of being downloaded.

Installed the extension from Google.


For some time, all formats (doc, docx, xls, xlsx and pdf) were opened, but at some point only (docx and xls) began to open, the rest were downloaded.
I can't figure out what caused this crash.

Very necessary. Thank you.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
i'm a bit confused.
You have docx+xls correctly working, so the problem is pdf ?
and what HFS version are you using?


Offline JonJonBravo

  • Occasional poster
  • *
    • Posts: 11
    • View Profile
i'm a bit confused.
You have docx+xls correctly working, so the problem is pdf ?
and what HFS version are you using?

Hi. I am using 2.4 rc7

Also tried 2.3m and 3 versions (GitHub). There is no result. I use browsers based on Chromium. Firefox doesn't open anything at all.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile

Offline JonJonBravo

  • Occasional poster
  • *
    • Posts: 11
    • View Profile
you didn't answer my first question

Problem in pdf, doc and xlsx.  docx and xls sometimes opens in chrome extension.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
but you said it used to work, so, what changed? Maybe you changed mime configuration in HFS ?
if you didn't change anything, then it's probably the browser extension that got updated. Maybe it stopped supporting some cases. (I don't have that installed)
Anyway, Chrome opens pdf without any extension. It works fine here.


Offline JonJonBravo

  • Occasional poster
  • *
    • Posts: 11
    • View Profile
but you said it used to work, so, what changed? Maybe you changed mime configuration in HFS ?
if you didn't change anything, then it's probably the browser extension that got updated. Maybe it stopped supporting some cases. (I don't have that installed)
Anyway, Chrome opens pdf without any extension. It works fine here.

I only edited templates.  But in any case, I deleted everything and started from scratch, but now not a single file opens, it only downloads.  :-[



Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 859
  • Status: On hiatus       (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
OK, here is the Chrome extension you are talking about:

Office Editing for Docs, Sheets & Slides - v145.610.617
"View and edit Microsoft Word, Excel and PowerPoint files with Google Docs, Sheets and Slides."
https://chrome.google.com/webstore/detail/office-editing-for-docs-s/gbkeegbaiigmenfmjfclcdgdpimamgkj?hl=en

Let's try to solve this...

1) In HFS press F5 to switch to expert mode.
2) Go to: Menu > Other options > MIME types...
     (or press F7 and click on 'MIME types' tab)

Manually add the following mime types:

(The first line goes in "File Mask")
(The second line goes in "MIME Description")


*.pdf
application/pdf

*.doc
application/msword

*.docx
application/vnd.openxmlformats-officedocument.wordprocessingml.document

*.xls
application/vnd.ms-excel

*.xlsx
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

*.ppt
application/vnd.ms-powerpoint

*.pptx
application/vnd.openxmlformats-officedocument.presentationml.presentation



...or if you save your settings to 'hfs.ini', search for the line
"mime-types", and directly add the following to the end of that line:

Code: [Select]
|*.pdf|application/pdf|*.doc|application/msword|*.docx|application/vnd.openxmlformats-officedocument.wordprocessingml.document|*.xls|application/vnd.ms-excel|*.xlsx|application/vnd.openxmlformats-officedocument.spreadsheetml.sheet|*.ppt|application/vnd.ms-powerpoint|*.pptx|application/vnd.openxmlformats-officedocument.presentationml.presentation
(This info was taken from a comprehensive list, that I've found here)

Save your HFS configuration, restart HFS and restart your browser.

Please leave a comment here if this has solved (or not) your problem. ;)
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
» Currently taking a break, until HFS v2.4 get his stable version.


Offline JonJonBravo

  • Occasional poster
  • *
    • Posts: 11
    • View Profile
OK, here is the Chrome extension you are talking about:

Office Editing for Docs, Sheets & Slides - v145.610.617
"View and edit Microsoft Word, Excel and PowerPoint files with Google Docs, Sheets and Slides."
https://chrome.google.com/webstore/detail/office-editing-for-docs-s/gbkeegbaiigmenfmjfclcdgdpimamgkj?hl=en

Let's try to solve this...

1) In HFS press F5 to switch to expert mode.
2) Go to: Menu > Other options > MIME types...
     (or press F7 and click on 'MIME types' tab)

Manually add the following mime types:

(The first line goes in "File Mask")
(The second line goes in "MIME Description")


*.pdf
application/pdf

*.doc
application/msword

*.docx
application/vnd.openxmlformats-officedocument.wordprocessingml.document

*.xls
application/vnd.ms-excel

*.xlsx
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

*.ppt
application/vnd.ms-powerpoint

*.pptx
application/vnd.openxmlformats-officedocument.presentationml.presentation



...or if you save your settings to 'hfs.ini', search for the line
"mime-types", and directly add the following to the end of that line:

Code: [Select]
|*.pdf|application/pdf|*.doc|application/msword|*.docx|application/vnd.openxmlformats-officedocument.wordprocessingml.document|*.xls|application/vnd.ms-excel|*.xlsx|application/vnd.openxmlformats-officedocument.spreadsheetml.sheet|*.ppt|application/vnd.ms-powerpoint|*.pptx|application/vnd.openxmlformats-officedocument.presentationml.presentation
(This info was taken from a comprehensive list, that I've found here)

Save your HFS configuration, restart HFS and restart your browser.

Please leave a comment here if this has solved (or not) your problem. ;)

Thanks for the answer. PDF opens, other formats are downloaded. :-X
« Last Edit: April 04, 2023, 05:02:24 AM by JonJonBravo »


Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 859
  • Status: On hiatus       (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
Thanks for the answer. PDF opens, other formats are downloaded. :-X
Then it could probably be a problem of the extension itself. :-[ If you read the comments and reviews of it, you will find most users are complaining that -lately- the extension is not working correctly. I'm almost sure they broke 'something', and unless you find an older 'working version' of the extension, most of the time when this happens there is no solution (until they decide to fix it). That's why I always make a personal local backup of every extension I use. That's all I can help, at least for now. Please leave a comment if you find a solution, as reference for other users.
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
» Currently taking a break, until HFS v2.4 get his stable version.


Offline JonJonBravo

  • Occasional poster
  • *
    • Posts: 11
    • View Profile
Then it could probably be a problem of the extension itself. :-[ If you read the comments and reviews of it, you will find most users are complaining that -lately- the extension is not working correctly. I'm almost sure they broke 'something', and unless you find an older 'working version' of the extension, most of the time when this happens there is no solution (until they decide to fix it). That's why I always make a personal local backup of every extension I use. That's all I can help, at least for now. Please leave a comment if you find a solution, as reference for other users.

ok, tnx


Offline JonJonBravo

  • Occasional poster
  • *
    • Posts: 11
    • View Profile
I noticed that if you open documents in Windows Explorer through the Open with - EDGE menu, they open perfectly in the browser. But when you click on the links of the local server, the documents are persistently downloaded.


Offline djflakf1

  • Occasional poster
  • *
    • Posts: 3
    • View Profile
Thank you and sorry for not posting the data

Intel Xeon CPU E3 1273 V3
32GB RAM
1Gbps Up/Down
Windows Server

Yes, I have read that they are developing the other one and it is great, but it does not have an option that I really like in 2.3, which allows you to copy the download link with the username and password included, or at least I have not found how to activate that option, example

http://user:password@link.com

What happens with my current 2.3 is that for some reason there are many people downloading, it stops and then you have to restart it, I don't understand why.


Offline JonJonBravo

  • Occasional poster
  • *
    • Posts: 11
    • View Profile
In the HFS3 being developed, there are no problems with opening. This version has an Open menu