Print Page | Close Window

attach files from localhost

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=14405
Printed Date: 09 April 2026 at 3:15pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: attach files from localhost
Posted By: puerileboy
Subject: attach files from localhost
Date 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 - 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 - 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



Replies:
Posted By: WebWiz-Bruce
Date 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.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: puerileboy
Date 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*


Posted By: WebWiz-Bruce
Date 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.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: puerileboy
Date 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!


Posted By: dj air
Date 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.


Posted By: puerileboy
Date 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 - http://localhost' and create a subsitute of the correct 'http://myownrealdomainname.com'
 
tried it .. worked like a charm! thanks!!!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net