rejetto forum
Software => HFS ~ HTTP File Server => Topic started by: JonJonBravo on April 02, 2023, 09:12:22 AM
-
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. (https://i121.fastpic.org/big/2023/0402/13/c7d2b8e1e28c9233633c7dcec48e0313.png)
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.
-
i'm a bit confused.
You have docx+xls correctly working, so the problem is pdf ?
and what HFS version are you using?
-
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.
-
you didn't answer my first question
-
you didn't answer my first question
Problem in pdf, doc and xlsx. docx and xls sometimes opens in chrome extension.
-
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.
-
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. :-[
-
Made a video to show
https://www.youtube.com/watch?v=6yyrWvsQAJA (https://www.youtube.com/watch?v=6yyrWvsQAJA)
-
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:
|*.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 (https://stackoverflow.com/questions/4212861/what-is-a-correct-mime-type-for-docx-pptx-etc))
Save your HFS configuration, restart HFS and restart your browser.
Please leave a comment here if this has solved (or not) your problem. ;)
-
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:
|*.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 (https://stackoverflow.com/questions/4212861/what-is-a-correct-mime-type-for-docx-pptx-etc))
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
-
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.
-
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
-
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.
-
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.
-
In the HFS3 being developed, there are no problems with opening. This version has an Open menu
-
In the HFS3 being developed, there are no problems with opening. This version has an Open menu
If it works when using HFS3, then we could make it work with HFS2.
Your last message reminded me a very important step that I've forgotten.
Please try this:
1) In HFS press F5 to switch to expert mode (if you are not already using it).
2) Go to: Menu > Other options > Open directly in browser...
It opens a window, showing this list:
*.htm;*.html;*.jpg;*.jpeg;*.gif;*.png;*.txt;*.swf;*.svg
Now, add to the end of that list the following:
;*.pdf;*.doc;*.docx;*.xls;*.xlsx;*.ppt;*.pptx
Or replace all the text with this:
*.htm;*.html;*.jpg;*.jpeg;*.gif;*.png;*.txt;*.swf;*.svg;*.pdf;*.doc;*.docx;*.xls;*.xlsx;*.ppt;*.pptx
Please report if that solves your issue or not.
(and sorry for my forgetfulness)
-
If it works when using HFS3, then we could make it work with HFS2.
Your last message reminded me a very important step that I've forgotten.
Please try this:
1) In HFS press F5 to switch to expert mode (if you are not already using it).
2) Go to: Menu > Other options > Open directly in browser...
It opens a window, showing this list:
*.htm;*.html;*.jpg;*.jpeg;*.gif;*.png;*.txt;*.swf;*.svg
Now, add to the end of that list the following:
;*.pdf;*.doc;*.docx;*.xls;*.xlsx;*.ppt;*.pptx
Or replace all the text with this:
*.htm;*.html;*.jpg;*.jpeg;*.gif;*.png;*.txt;*.swf;*.svg;*.pdf;*.doc;*.docx;*.xls;*.xlsx;*.ppt;*.pptx
Please report if that solves your issue or not.
(and sorry for my forgetfulness)
Yes, almost all documents now open in the browser. :D Only XLS keeps downloading
-
Yes, almost all documents now open in the browser. :D Only XLS keeps downloading
I'm glad you almost got everything working. :D
Give me some time, to try to solve the XLS problem...
-
Looking in the sources of this extension, I've found it includes 2 types of MIME for XLS.
Try to use the following MIME (when doing these (https://rejetto.com/forum/index.php?topic=13598.msg1067633#msg1067633) steps), for the XLS:
*.xls
application/msexcel
Change "application/vnd.ms-excel" to "application/msexcel"
If that doesn't work, then I had no idea on how to solve this, sorry... :-\
-
Looking in the sources of this extension, I've found it includes 2 types of MIME for XLS.
Try to use the following MIME (when doing these (https://rejetto.com/forum/index.php?topic=13598.msg1067633#msg1067633) steps), for the XLS:
*.xls
application/msexcel
Change "application/vnd.ms-excel" to "application/msexcel"
If that doesn't work, then I had no idea on how to solve this, sorry... :-\
Unfortunately it didn't work. Anyway, thanks for the help. You helped me a lot. ;)