rejetto forum
Software => HFS ~ HTTP File Server => Topic started by: Sapphirescales on July 14, 2009, 06:05:18 AM
-
Sorry if this is a terribly obvious question, but why can I not link to files when the filenames have a space in them? For example, this URL will work:
www.*******.com/members/john/supercoolvid.avi
But this one will not:
www.*******.com/members/john/super cool vid.avi
It replaces the spaces with the characters "%2520" and I get a server error. Is there any way to make this work? My members are getting frustrated because their links won't work when the filenames have a space in them. I'm guessing this is a setting in the HFS interface which is why I didn't post this in the HTML/Templates section.
I'm using a heavily modified version of RAWR, but it did the same thing when I used the standard template too.
-
Should only have %20 for spaces. %2520 sounds like you have escaped %20, resulting in %2520
-
it depends on WHERE you are putting that url...
you may type it in the browser bar, or in an html file, etc...
-
I don't know why it was displaying %2520 instead of %20 but it's not doing that any more.
I'm talking about linking like posting a link in a forum. I've got it to work in the settings so this link will work:
IPADDRESS:PORT/members/john/super cool vid.avi
But this link won't work:
www.*********.com/members/john/super cool vid.avi
Since I have a dynamic IP, if someone links to a file via just my IP address, the link will not function after awhile. Is there any way around this?
-
yes, using a "dynamic dns" service.
you will find information both in the HFS documentation, or in google.
-
I already have dynamic DNS service. The problem is when I go through my domain name and try to load a file that has spaces in the name, I get a server error. It doesn't do that when I just use the IP address and port but when I do it through the DNS service it will give me an error.
-
ok, so the question is: how do you get that non-working link?
best way is to double-click on the item on the HFS window.
if this is not feasible for any reason, you can use your browser and "copy link" on the item you want.
i guess you are using a different method, since it's not working for you...
-
When I copy the link it copies the address with the IP and port. I simply manually replace the IP and port with my DNS domain name and it works.....providing there are no spaces in the file/folder names. If there are spaces I get an error, but if I don't put in my DNS domain name (meaning I just leave my IP and port in the beginning), it works fine with spaces. ???
-
sapphirescales,
you can set in: menu -> IPaddress -> custom your domainname. When done, select in menu -> IP address your domain name and you don't have manually to replace your ip by the domainname. :)
-
I tried that but the server doesn't work at all then when I try to go to my domain. :'( I've tried removing the port from the url forwarding and putting it back. Same result.
-
You can't use your domainname on your PC or on your lan. The link with your domainname only works from internet.
Inside your lan, you have to use your local ip or the computers name, on your PC use localhost or 'open in browser'.
-
I tried accessing it through a proxy server as well. It didn't work. :-[
-
you normally don't need to make it work.
just use "localhost" as domain. the open in browser command does this way.
if you really need it, you can get it by editing your "hosts" file. make a search!