Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - attach files from localhost
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

attach files from localhost

 Post Reply Post Reply
Author
puerileboy View Drop Down
Newbie
Newbie


Joined: 24 March 2005
Location: United States
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote puerileboy Quote  Post ReplyReply Direct Link To This Post Topic: attach files from localhost
    Posted: 24 March 2005 at 9:39am
Hi there, i have searched through and found nothing like this. When I am logged into WebWizForum on my local computer (i.e. http://localhost/forum) when i try to attach a file to a post i can then access it personally from there, however no one else who logs in can access it, as the link for the attachment is http://localhost/forum/uploads/some_file_i_uploaded . Is there any way i can modify something to resolve this? I do not know if it helps (or hurts) i am using ASPSmartUpload
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 24 March 2005 at 11:25am
The simplest way to resolve this would be that you also need to connect to your site through the domain name.
Back to Top
puerileboy View Drop Down
Newbie
Newbie


Joined: 24 March 2005
Location: United States
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote puerileboy Quote  Post ReplyReply Direct Link To This Post Posted: 24 March 2005 at 7:14pm
Yes that would be best, unfortunately ... i have the machine nat'ed on a subnet behind a router, and it won't let me connect back to my own machine via the domain name (if i try i get a domain name not found and when i try to use the ip address it connects direct into the router admin). My only solutions thus far is to: remote desktop into another machine off my subnet, then connect back in, but that is WAY cumbersome, or use a proxy server, but that also is very slow.
 
Thanks though Borg, i wish it were that simple *sigh*
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 25 March 2005 at 4:32am
The only other way is to mod the forum to filnd any occureneces of 'http://locahost' and change it to your own sites domain.

You may then have a problem if anyone actually posts 'http://locahost', but unless you run a support forum like this I doubt anyome would be typing that in.

The page to mod would be the post_message.asp page and to use the 'Replace' method to replace 'http://locahost' with your domain name.
Back to Top
puerileboy View Drop Down
Newbie
Newbie


Joined: 24 March 2005
Location: United States
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote puerileboy Quote  Post ReplyReply Direct Link To This Post Posted: 25 March 2005 at 11:26am
Okay, it took me a few minutes to think this out, but i understand now what you are saying. I haven't ever writen in ASP before (except to really mess up good code before Wink ) but i think i get the idea, and will educate myself on 'Replace' . Thanks BoRg!
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 25 March 2005 at 11:37am
the replace function can be

strMessage = replace(strMessage, "http://localhost", "http://www.mydomain.com")


a good site to have bookmarked is www.devguru.com

has a list of all the functions (built in) and examples.
Back to Top
puerileboy View Drop Down
Newbie
Newbie


Joined: 24 March 2005
Location: United States
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote puerileboy Quote  Post ReplyReply Direct Link To This Post Posted: 27 March 2005 at 11:04am
Wow.. after reading your post DJ Air i went looking into the code in post_message.asp .. and noticed there was already an entry similar for the bad word filter, which got me thinking .. i could just create a bad word out of ' http://localhost' and create a subsitute of the correct 'http://myownrealdomainname.com'
 
tried it .. worked like a charm! thanks!!!
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.