rejetto forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - LeoNeeson

Pages: 1 2 3 ... 55
1
Issues with HFS 2.4.0:

- when setting login and password, I can not access the files because of 'user not found' error (both login and password are correct)
- creating the user with access, no any login popup in Opera and Chrome (previous version worked fine)
Popup appearing in Mozilla only

Hi! :)

Friendly reminder: to make a proper (useful) report, we need the following...

1) Your exact version number (and build) of Chrome, Opera and Mozilla.
2) Your exact build of HFS v2.4.0 (there are many builds, latest is RC7).
3) Post a screenshot of the Browser's console (see instructions below)

How to open browser console:
> Launch the console using this universal shortcut: Ctrl + Shift + J
> Make a screenshot of the browser console, and post it here on the forum.

It's recommended to open the console -before- opening the URL. To do this, open a new blank tab, open the console, and load the URL of your HFS's server. Saying this, it's not guaranteed you get a solution (since HFS v2 development was discontinued, in favor of the new HFS3), but every issue/bug report is still appreciated, and perhaps we can help you.

Important detail: keep in mind that HFS v2.4.x have removed the 'traditional' login popup and replaced it with a modern login form (so, it's strange you still get it using Mozilla). Please add all the details listed above, to make this thread useful.

Cheers,
Leo.-

2
Bug reports / Re: Bug: Logout function at server level [Fixed]
« on: April 24, 2023, 10:36:26 AM »
Leo, hello!
There is a problem: If you log in locally, then the authorization form works fine, but if you access HFS from outside, via the Internet, the authorization form does not work, it does not respond to login / password. Please help me figure it out.
Hi! and welcome... :)

Sorry for my late reply (I've received your private message)

Your message doesn't say what version are you using, but please make sure you use latest v2.4 (or the new HFS3). The default template of HFS v2.x depends on jQuery to work, and some older templates (based on versions older than HFS v2.3f), were using an external CDN for jQuery. Since you say it works fine locally, perhaps 'something' is blocking or interfering with the access to jQuery (and therefore, affecting the login). Sadly, I could not give you more ideas than that. I currently don't have time to deal with complex issues, but if you add much more details, perhaps we could possibly have more idea of what is causing your issue (but I cannot promise to solve it).

For as much as I would like to help people, please consider this thread closed, since it was a technical discussion to implement the logout system, which was already added on HFS 2.4. Your issue is about the login, not logout anyway (in that case, is much better open a new thread, along with more details).

Cheers,
Leo.-

3
router & port problems / Re: problem when enabled two adapters
« on: April 15, 2023, 05:48:25 AM »
DMZ doesn't magically open ports for 2 network adapters, only one. DMZ should pass (open) all traffic for only ONE IP address (let say 172.16.20.203), and that should be configured on your router (check there what IP you assigned as DMZ). Then I assume 172.16.20.205 is the IP from your second adapter. HFS perhaps is 'switching' to your second adapter (and that's why it fails on being reachable from the outside). You need to choose (select) in HFS the IP assigned as DMZ (in your case, I guess is 172.16.20.203). If that fails, then your last option is making a 'bridge' between your 2 network adapters on Windows. You can follow THIS steps to make the bridge, but I can't guarantee it will work (you have to test it). Versions of "HFS SSL by SilentPliz" were based on the development of HFS 2.3x (which was discontinued), that's why if some bug arises, we all depend on the community collaboration to make fixes. That said, try making a 'bridge' between your 2 network adapters and please comment here if it worked or not. :)

4
HFS ~ HTTP File Server / Re: Adjusting column width in version 2.3m
« on: April 07, 2023, 03:28:56 AM »
I want to adjust the width of the column called "Name .extension". Need it to be a little wider so that the file name, if long, does not show up as two lines, rather just one line. Where do I edit the HTML to do that, if possible? Thanks.
Hi!, :) just follow these steps...

1) Press F6 to edit the template

2) Find the following line:

Code: [Select]
#files tr td:first-child { text-align:left; }
3) Change it with the following:

Quote
#files tr td:first-child { text-align:left; overflow:hidden; word-wrap:normal; white-space:nowrap; text-overflow:ellipsis; max-width:300px; }

(The text marked in red color is the addition)

This is just an example, it's up to you adapting to your needs (you need to have some CSS knowledge). The above code, is ONLY valid for the default template of v2.3m!

Hope it helps!
Cheers,
Leo.

5
HFS ~ HTTP File Server / Re: Documents view in browser
« on: April 05, 2023, 12:22:15 PM »
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 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... :-\

6
HFS ~ HTTP File Server / Re: Documents view in browser
« on: April 05, 2023, 10:18:46 AM »
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...

7
Bug reports / Re: Stuck when is downloading.
« on: April 05, 2023, 10:05:15 AM »
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.
You are right, HFS3 will probably never have that kind of login style, since it's considered deprecated by today's web standards (and passing Basic Authentication parameters in URL, is not recommended). Perhaps Rejetto could add a similar scheme in HFS3, in the style of:

http://link.com/?username=TestUser&password=TestPassword
(but anyway, this kind of authentication is not considered secure)

Thank you and sorry for not posting the data

Intel Xeon CPU E3 1273 V3
32GB RAM
1Gbps Up/Down
Windows server
Thanks for your reply. When you say HFS "crashes", I assume that it closes it's self (something different than "hanging up" or "freezing"). If HFS closes its self, as workaround you could try using WatchCat (which automates the process of restarting HFS, if it closes or if stop responding).

8
HFS ~ HTTP File Server / Re: Documents view in browser
« on: April 05, 2023, 09:42:15 AM »
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:

Code: [Select]
*.htm;*.html;*.jpg;*.jpeg;*.gif;*.png;*.txt;*.swf;*.svg
Now, add to the end of that list the following:

Code: [Select]
;*.pdf;*.doc;*.docx;*.xls;*.xlsx;*.ppt;*.pptx
Or replace all the text with this:

Code: [Select]
*.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)

9
Bug reports / Re: Stuck when is downloading.
« on: April 04, 2023, 09:22:54 AM »
Hello, when there are several people downloading on my server, HFS crashes and I have to restart, what can I do to avoid this?
Hi and welcome. :) Please, always remember to give more information, like what exact version of HFS are you using, your operating system and amount of RAM memory. Although I can't promise any fix (since HFS v2 development was discontinued), it would be useful if you can report what kind of error HFS gives when it crashes.

If you use Win10 or later, it's known that some users already reported similar issues when using HFS v2.3x and v2.4x. That's why Rejetto started working on the new HFS version 3 (at least for modern OS, it's recommended to use HFS3).

10
HFS ~ HTTP File Server / Re: Documents view in browser
« on: April 04, 2023, 09:10:15 AM »
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.

11
HFS ~ HTTP File Server / Re: Documents view in browser
« on: April 03, 2023, 09:00:45 AM »
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. ;)

12
HTML & templates / Re: How to do a URL rewrite using macros?
« on: April 01, 2023, 06:02:45 AM »
Hi, how to run some html script when clicking on some file instead of handled by the browser itself ?
I mean, the default is: When I put MIME n click on a .mp4 file, then browser will open the file only in the browser.
I need to run .mp4 with subtitle support, but it's not a good idea to put index.html in every folder to do that.
I think maybe something can be done in template file so I can put html codes in there to handle .mp4 files.
Im using 2.4rc7. Thanks before.
Hi!, this is complex stuff...

Option A) You need to write a macro to do a 'URL rewrite' (search on the forum about [+request]), but only if end-users are accessing the MP4 directly (this is not the most common situation), but in that case...

For example, you could have these files:
Code: [Select]
https://localhost/files/video123.mp4
https://localhost/files/video456.mp4
https://localhost/player.html

So, every time a .mp4 is requested, using a macro HFS could rewrite the URL to deliver the player HTML with the MP4 file attached on the URL, like this:

Quote
https://localhost/player.html#files/video123.mp4

or

Quote
https://localhost/player.html#files/video456.mp4

Option B) But in case end-users are accessing MP4 files from a file listing, then is much easier, since you only need to modify your template and have some HTML knowledge. You only need to have a single 'player.html' with a JavaScript that 'reads' the video from the URL (search on Google about 'read the URL parameters with JavaScript').

If you could share the minimal HTML code of your video player (player.html), that you used to play .mp4 "with subtitle support" on the browser, then we could think a solution to convert it to some macro (I don't promise anything, since it depends on the complexity of the code). As reference only (and out of curiosity), you could comment what library are you using to play subtitles, perhaps MP4Box.js?). By the way, I don't have any small MP4 with subtitles embedded to make some tests, so, don't expect too much help from me.

ยป Important detail: latest HFS v2.4 RC7 could PROBABLY have some macros broken, since I've already reported here, so even if you have the correct macro, it could not work (unless you find which older version have this working). Sadly, I didn't have the time to find out a solution to this, neither the reason of why it doesn't work.

That's all I can help for now, I hope it helps! :)

Cheers,
Leo.-

PS: You could edit the title to 'How to do a URL rewrite using macros?' to get more attention to your request.

13
HTML & templates / Re: question
« on: March 25, 2023, 11:38:06 PM »
i cant rename file to index.html but i can download and upload it as index.html lol
"Just live with it" ;) (until it's fixed, possibly never). Thanks for the report, anyway. You can edit the template and remove the protection check, but it's not recommended (since it requires you to have knowledge to not break the template).

Wait a minute... :o I hear Rejetto's footsteps approaching coming here, possibly to suggest you to try the brand-new HFS v3, which you already know: is 100x much better (and 10x more bloated too, but sadly I can't run it on my WinXP to test it). So, I better leave you now before he comes.
See you next time, bye...

14
HFS ~ HTTP File Server / Re: Ask how to Logout
« on: March 24, 2023, 09:06:26 AM »
i don't remember if 2.4 offers logout, maybe yes.
Mmmm, yes, maybe, perhaps, probably... 🤔

(Sorry, it was an easy joke)
😂
;D

15
HTML & templates / Re: question
« on: March 16, 2023, 08:35:35 PM »
do you know how i could allow uploading html files?
Sorry, I was busy, and I couldn't answer...

It's easy, follow these steps: ;)

1) Right-click on the folder you allow uploads, and choose 'Properties...'

2) Go to 'File masks' tab, and on 'Upload filter mask' write this:

*.*
(for allowing any type of file)

or

*.htm*
(for HTML files only)
(this only allows: .htm and .html files)

If you need to allow several types, you can separate using ;

For example (more examples):

*.htm*;*.jp*g;*.txt;*.rar
(this only allows: .htm, .html, .jpg, .jpeg, .txt and .rar files)

I guess this also answer this question (since it's the same question)

Cheers,
Leo.-

Pages: 1 2 3 ... 55