Recent Posts

Pages: [1] 2 3 ... 10
1
HFS ~ HTTP File Server / Re: List file office have security : document safer
« Last post by bmartino1 on January 12, 2018, 10:15:45 PM »
lolz, what in the world are you talking about?

are you trying to use hfs and do a file listing of ofice documents?
are you trying to have a document apear in a web page?

what do you maen hfs can\;t list file "office"
https://stackoverflow.com/questions/5565759/how-to-embed-a-document-in-html-page

usualy you have to define the document your using as a text/html
by addind the file extention to a application

Set mime type example pdf:
https://msdn.microsoft.com/en-us/library/bb742440.aspx

so extenion would be: *.pdf
adn application (steream/html encoding): application/pdf

then disaply the file on the webpage via html coding example:
Code: [Select]
<iframe src="somepage.pdf"></iframe>
also info on PDF can be found here:
http://www.rejetto.com/forum/hfs-~-http-file-server/information-(mime-types)-embed-pdfsvideo-and-audio/
Quote:
PDF:
To use a pdf in a web browser you will need this software:
http://filehippo.com/download_adobe_reader/

now for the html code:
a real folder with your "*.pdf" file in it
right mouse click "properties" the pdf folder > different templates tab

put this html code in:

-------
Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="HTML Tidy for Linux (vers 25 March 2009), see www.w3.org" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>PDF SAMPLE</title>
</head>
<body>
<br />
<embed width="100%" height="700" name="plugin" Title="Resume" src="http://192.168.1.254/pdf/sample.pdf" type="application/pdf">
<br />
</body>
</html>
--------

You will need to setup the pdf document to be view able in a web page:
-----
http://helpx.adobe.com/acrobat/kb/cant-view-pdf-web.html

http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7f52.w.html

Edit > Prefference > Documents > (make sure htis box is checed)! Save as optimizes for Fast Web View

File > save as > same file it enables the web code in the pdf...
-----
now open http://192.168.1.254/pdf/sample.pdf
(assume you have adobe reader installed... the pdf is now displayed in the browser...)
2
Bug reports / Re: MTU and MSS size setting
« Last post by bmartino1 on January 12, 2018, 10:10:04 PM »
actual most networks and devices use mtu 1300-1500

1500 - standared router networks (class C)
1400 - game station
1300 - major ISP head ends(advance routing)

1400 is usual added via default router config for most "major manfactures"...

all of with is not handeld via the software/ HFS program. there ususal is a setting to change in your router config
----------------------------------

OTEHRWISE:
a bunch of testing and other networking stuff is required to even atempt to find your netwroks good mtu/mss...

https://www.sevenforums.com/tutorials/94721-mtu-limit-test-change-your-connections-mtu-limit.html
3
HFS ~ HTTP File Server / Re: HFS returning OK (200) to POST even when upload fails
« Last post by bmartino1 on January 12, 2018, 10:08:14 PM »
you will probaly have to add a html code macro to give you soem more info:

https://stackoverflow.com/questions/32901015/how-to-add-header-authorization-for-post-form-using-js-ajax-jquery

some thing like this as seen form link above...
-------------------------

Html form code :

         
Code: [Select]
  <form><!---Removed form submit url-->
            <input type="text" id="keyName" value="testValue">
            <!---Id attribute added to input field to be submitted--->
            <input type="button" onclick="myFunction()" value="Submit">
            <!---Input type is button NOT submit--->
            </form>

Javascript code:

Code: [Select]
function myFunction(){
var dataValue = $("#keyName").val();
$.ajax({
            type : 'POST',
            //remove the .php from results.php.php
            url : "http://externalsite.cpm/results.php",
            //Add the request header
            headers : {
                Authorization : 'Bearer ' + 'XXXXXXXXXXXXXXXXXXXXXXXXX'
            },
            contentType : 'application/x-www-form-urlencoded',
            //Add form data
            data : {keyName : dataValue},
            success : function(response) {
                console.log(response);
            },
            error : function(xhr, status, error) {
                var err = eval("(" + xhr.responseText + ")");
                console.log(err);                   
            }
        }); //End of Ajax
}   // End of myFucntion


---------------------

more info aon addind data to the header:
...

http://www.rejetto.com/forum/hfs-~-http-file-server/posting-to-hfs-using-wfetch-tool-(http-post)-not-saving-file-to-folder/msg1060575/#msg1060575

BUT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

REJETO has already answered this on a previous form post:

Re: Posting to HFS using Wfetch tool (HTTP Post) not saving file to folder
« Reply #9 on: August 31, 2015, 09:51:08 AM »
POST is generic. HFS needs data to be sent as "multipart", in the POST. That's what the browser does.
See if you have such option on your side.
« Last Edit: August 31, 2015, 09:59:15 AM by rejetto »

http://www.rejetto.com/forum/hfs-~-http-file-server/changing-http-response-header/
4
Bug reports / MTU and MSS size setting
« Last post by arttim on January 05, 2018, 02:49:10 AM »
During Big data file download test by HFS server, It set as MTU 1512 / MSS 1460 defaultly.
But Most network system use MTU 1500 / MSS 1448.
So It cause fragmentation problem frequently.
Can you change default MTU to 1500 or add MTU/MSS option menu??
5
HFS ~ HTTP File Server / List file office have security : document safer
« Last post by kckmxv on January 01, 2018, 11:38:47 PM »
Hfs can not list file office have security : document safer

how to display it?

Thanks you vary much!
6
HFS ~ HTTP File Server / Re: hfs yealink phone contact update
« Last post by bmartino1 on December 30, 2017, 11:29:30 PM »
just to add some info here. I believe rejeto has helped the users main question here.

HFS is a http protocal and caould be used to uplad phone configs.

Yealink are like polocom hardware. a SIP protacal VOIP service phone

You can use HFS as a HTTP Provisiong server. this will have a sepcfice folder with a config file that points to a Sip server for VOIP Phone use
https://www.3cx.com/sip-phones/manually-provision-yealink/

pdf for yealink setup provsining server
http://download.support.yealink.com/download?path=upload%2Fattachment%2F2015-3-12%2F3%2Fa20b8122-2868-4c02-b61f-84338934c421%2FYealink_SIP-T2_Series_IP_Phones_Auto_Provisioning_Guide_V72_30.pdf

Contact generation and provision:
https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=0ahUKEwjKlteAwrPYAhXL7IMKHVVIBkEQFggxMAE&url=http%3A%2F%2Fsupport.yealink.com%2FattachmentDownload%2Fdownload%3Fpath%3Dupload%252Fattachment%252F2017-3-20%252F3%252F05c76274-ea0e-4cbb-8792-697a38aa2e10%252FYealink%2BPhonebook%2BGeneration%2BTool%2BUser%2BGuide_V81_70.pdf&usg=AOvVaw0s0zVX8oHp-mUALfDevUdI

7
Other languages / Re: HFS Spanish Chile
« Last post by clyman on December 18, 2017, 12:55:39 PM »
Gracias Amigo
8
HFS ~ HTTP File Server / Re: Feature request: folder access by IP address
« Last post by LeoNeeson on December 11, 2017, 07:40:46 PM »
Hi rejetto, please check your Wiki, since it seems there is a problem with it because I can't login. It shows this error: "There seems to be a problem with your login session; this action has been cancelled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again.". I've tried to login with another browser, but it shows the same error.

See the screenshot: https://i.imgur.com/erYmd81.png


Searching on Google, here, here and here you can find a possible solution (it seems you have to change $wgMainCacheType = CACHE_ACCEL; to $wgMainCacheType = CACHE_NONE; or changing it to $wgSessionCacheType = CACHE_DB; in the cache settings file, located in LocalSettings.php)

Cheers,
Leo.-
9
HFS ~ HTTP File Server / Re: Feature request: folder access by IP address
« Last post by morituruz on December 11, 2017, 06:00:52 AM »
Thanks to the wiki engine nothing was actually deleted :)
http://www.rejetto.com/wiki/index.php?title=HFS:_Event_scripts&oldid=5612
10
HFS ~ HTTP File Server / Re: Feature request: folder access by IP address
« Last post by LeoNeeson on December 11, 2017, 05:05:44 AM »
Cool! :)

Fortunately, Archive.org still has a copy of it.
Pages: [1] 2 3 ... 10