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 4 5 ... 56
31
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).

32
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)

33
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).

34
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.

35
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. ;)

36
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.

37
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...

38
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

39
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.-

40
HTML & templates / Re: question
« on: March 11, 2023, 07:46:45 PM »
is it possible to edit the baked in html or icon files of hfs?
Yes, it's possible (this was answered on the FAQ, but requires being competent in HTML to not break things). This was answered several times on the forum. :)

41
router & port problems / Re: port forwarding and hosting
« on: March 11, 2023, 07:40:24 PM »
is it possible to host a hfs server with an ipv6 public ip adress...
Yes, it's possible (IPv6 is supported on both: HFS v2.4 and HFS 3)

...is it possible to port forward on a mobile network
This is a very broad question (hard to answer question). Some mobile network operators use NAT, so the address you see is not directly pointing back to your device, while others block inbound port forwarding. It also depends on the device you use to connect to the mobile network (it's not the same thing using an Android or iPhone, than some 4G LTE USD dongle). Even if you say what device you use, your mileage may vary. If you have some networking knowledge, in case your mobile ISP blocks port forwarding, what you probably need is a reverse tunnel (it can be done doing a reverse SSH, and for that you need to rent a VPS). You could follow THIS guide if you are skilled with Linux. That's all I can help (covering all the details, gets too technical). Hope this helps. :)

42
Bug reports / Re: How to delete files.
« on: February 09, 2023, 04:15:25 PM »
Doing this stuff is very consuming, sometimes painful.
I fully understand you, now more than ever. :-[ These days (and the last two months) I barely had time to live: I'm on a rush all day, with almost no time to rest or take a break, and the worst thing: it's not for getting rich, but to maintain a minimum quality of life (to cover all the basic things). I'm taking high debt with the banks, and this is no good. Check this nice graph to understand and see how Argentina is, here (with his related article), and it is not an exaggeration. The only way to survive here is working for a multinational enterprise company (having a good salary), or to have a very well established business (chance that no everyone has). In the medium to long-term, I plan to go to another country (some neighboring country), but it's not an easy task (since the pandemic delayed everything and inflation is getting worse year after year). Don't get me wrong, I love living here (it's a beautiful country), but the economy since a long time is a curse.

there's no need to be "intentional".
The Occam's razor principle was the perfect explanation (with the new HFS v3 you seek to 'simplify' the task of maintaining and bug-fixing, rather than waste time you don't have on v2). This principle covers the 'rule of simplicity' and also gives the idea that 'the simplest explanation is usually the best one'. Sorry for my previous message (it wasn't with malicious intent). Neither was a criticism towards you, but rather a message to the rest of users that expect overnight 'bug-fixing' of HFS v2's issues, ...and with your absence for many months, the sailors began to invent stories, LOL. ;D

i'm just commenting to let you know what I think, i'm not angry or sad
That speaks well of you. :) This forum helps me ‘disconnect’ from the problems of my daily life, and I truly appreciate it (thank you for having it online).

43
Bug reports / Re: Hfs.exe - Maulware via PUP
« on: February 06, 2023, 09:10:36 PM »
Hi, if you have it downloaded from a ‘trusted source’ (from here or here), you can rest assured it is a ‘false positive’. About the digital signature, ‘code signing’ is expensive (not free, even for open source projects).

44
Programmers corner / Re: Only one thing that wasn't released about HFS...
« on: January 05, 2023, 07:42:55 PM »
Thanks for the file! (I will try it on my spare time)

I had to remove from the source the part related to antiflood because it is bound to my database
That's fine (it's fair and understandable), and it's not quite important since it's unrelated to HFS (there are plenty PHP antiflood scripts on Google).

you have my email address, next time send me the link to your post if you want to catch my attention.
Yeah, but I didn't want to bother you (I'll keep it in mind for next time)

Grazie mille! :D

45
Beta / Re: 2.4 template-making guide
« on: December 28, 2022, 10:12:15 PM »
2.4 beta 2 - The option.newfolder=0 works fine
2.4 beta 3 - The option.newfolder=0 is ignored, "new folder" does not turn off
Thank you, I will check the source code this weekend, and try to fill a bug report on the next days. My free spare time is limited, so don't expect this to be fixed soon (and also, Rejetto is not actively working on v2.x branch). That said, your report is very appreciated.

» EDIT: I've found the problematic commit where this bug was introduced, HERE. We still need to analyze how to keep the improvements, but fix this issue. Please be patient, until we find a solution.

Pages: 1 2 3 4 5 ... 56