Print Page | Close Window

Problem with file upload

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=7620
Printed Date: 06 April 2026 at 3:35pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Problem with file upload
Posted By: rigg
Subject: Problem with file upload
Date Posted: 26 November 2003 at 10:14am

Hi everyone.

I have a problem with file upload, using Dundas Upload.

The problem is that when uploading a file (zip) to the forum, the link shown in forum is http://server/webwiz/uploads - http://server/webwiz/uploads  instead of http://www.internetsite.com/webwiz/uploads - http://www.internetsite.com/webwiz/uploads .

Uploaded avatars and other pictures ar linked correctly.




Replies:
Posted By: lodogg
Date Posted: 26 November 2003 at 11:24am
Are the uploads making it to the upload folder?  Do you have all of your web site configurations correct under the administrator console?


Posted By: rigg
Date Posted: 26 November 2003 at 11:43am

yes, the uploads are in uploads/username folder. I can download them from my machine because the path is correct, but the path is wrong from the internet.

All settings seems OK



Posted By: lodogg
Date Posted: 26 November 2003 at 11:59am
Do you have everything correct under the Forum Configuration window?  I don't think Dundas had any options on what domain you are on.  It's pretty straight forward....  I would say it's under the Forum Config window.  But then again I'm no expert


Posted By: rigg
Date Posted: 26 November 2003 at 12:13pm

Everything seems fine for me, in upload config it's the same for files and pictures but the strange thing is that images are correct linked in the forum.

Checking the acccess db and I see that pix are linked <IMG src="uploads/username/picture.jpg and files are <A href=" http://server/webwiz/uploads/file.zip - http://server/webwiz/uploads/file.zip  and therefor displaying the wrong link to the visitors.

 



Posted By: lodogg
Date Posted: 26 November 2003 at 12:25pm
Got me......  I'm sure one of the pro's here will help you on the right path


Posted By: Semikolon
Date Posted: 26 November 2003 at 12:35pm

you upload files local right? (using your computername as the "domain")

if you do that try use your real internet domain..

<<<EDIT>>>

when uploading a file the url to the file including the domain it is uploaded from is stored in the database.. then if you are using http://yourcomputer/ - http://yourcomputer/ when uploading, the script will save http://yourcomputer/filepath/filename - http://yourcomputer/filepath/filename in the database.. if you are using http://www.yourdomain.com - http://www.yourdomain.com when uploading, the script will save http://www.yourdomain.com/filepath/filename - http://www.yourdomain.com/filepath/filename in the database..



Posted By: lodogg
Date Posted: 26 November 2003 at 1:41pm
Makes sense to me


Posted By: rigg
Date Posted: 27 November 2003 at 2:37am

yes, but isn't that a kind of bug for us who have their own servers?

Other can't get files I put in the forum (using RTE) and I cant get files others have uploaded!



Posted By: Semikolon
Date Posted: 27 November 2003 at 9:25am
is there a problem using your domain?


Posted By: WebWiz-Bruce
Date Posted: 27 November 2003 at 12:22pm
When a file is uploaded using the forum the http part is not included in what is used for the location of the file.

All that is stored is the path from the forum's HTML pages to the folder the file is uploaded to, not the full domain eg.

If you upload a file called file.zip the link to it stored in the post is:-

<a href="uploads/myUser/file.zip">myFile</a>

So it shouldn't matter how the file is uploaded.

If this is not the case check your settings are correct in the admin section.


-------------
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: Semikolon
Date Posted: 27 November 2003 at 12:36pm

-boRg- i think you are wrong..

in my database the whole thing is stored ( http://domain/path/name - http://domain/path/name ) and thats not the same domain i have specified in the admin section.. cus i havnt changed that and in the database i get http://dataenmin/path/name - http://dataenmin/path/name (dataenmin is the name of my computer)



Posted By: rigg
Date Posted: 27 November 2003 at 2:31pm

I agree with AnthraX

The path stored in db when someone "out there" uploads is http://iggstrom.homeip.net - http://iggstrom.homeip.net ... (the dyn ip adress) but the domain name I set in admin setup is http://www.iggstrom.com - www.iggstrom.com  (my domain name) and the path stored in db when I upload from within the local network is http://server - http://server ... (server is the name of my server )

By the way, my forus is v7.6 and server is iis6.0 (w2k3)



Posted By: WebWiz-Bruce
Date Posted: 28 November 2003 at 5:55am
Either you are runing a modified version or you have changed something then.

I didn't write the code to include http://domainname.com in the path to uploaded files.

Have a look at the code yourself in the upload_files.asp file the code I wrote takes the path to the upload folder entered in the upload configuration page in the admin area and adds the file name to the end, this is then placed into the post in the format I mention in my last post.

So unless the forum has come alive and is wirtting it's own code this is how paths to uploaded files are stored when using the built in file upload features of the forum.


-------------
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: rigg
Date Posted: 28 November 2003 at 6:12am
Ok, I didn't modify the file, maybe some mod I installed. I shall restore the file with the original one as soon as I'm back from work.


Posted By: Semikolon
Date Posted: 28 November 2003 at 11:34am

i hadnt done anything with the forum.. it was a blank v7.6.. no mods and no configuration changes..

maybe it is dundas.. that was the only thing i changed before uploading..



Posted By: rigg
Date Posted: 28 November 2003 at 1:57pm

Strange, I dl'ed a fresh 7.6 and installed to a test folder, just that, no mods.. Same thing happend, in the db the link it is written as http://server.... - http://server....

I even installed Persist Asp Upload and used that one instead of Dundas without success!



Posted By: Semikolon
Date Posted: 28 November 2003 at 2:04pm

maybe bruce has coded in sleep or something..

im getting closer to my 100th post now!! yeah.. ive got nearly 100 and bruce's got nearly 10100.. sh*t..



Posted By: drcrazy
Date Posted: 28 November 2003 at 2:12pm
I have the same problem with the forum. I can upload pictures and files to the forum. When someone try to download the file that I have uploaded there is problem. When someone else upload a file to the forum it works for everyone but me. I have not a clue why????


Posted By: rigg
Date Posted: 28 November 2003 at 3:59pm
The strange thing is that pictures and avatars are corrrect. Is the problem somewhere in upload_files.asp? Isn't it the RTE part who finally sends the string to the database?  


Posted By: rigg
Date Posted: 02 December 2003 at 1:15am

Even tried to access the site through my ip adress (81.225.........) and upload a file. The link stored in the database is http://81.225 - http://81.225 .... so the problem cannot be whatever I setup in admin > forum config



Posted By: WebWiz-Bruce
Date Posted: 02 December 2003 at 2:52am
This must be the component that you are using that is adding this.

What component are you using?

You could try using a different upload component.


-------------
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: rigg
Date Posted: 02 December 2003 at 2:05pm

I use Dundas.

I even installed Persist Asp Upload and used that one instead of Dundas without success!

Next step is to try upload without component (pure asp), saw a script here somwhere.. But thats tomorrows headace!

Is the upload component involved in whats written to db?



Posted By: Semikolon
Date Posted: 02 December 2003 at 2:21pm
you are running your website from a private server in your private workgroup or something like that right? and you can use http://computername - http://computername , http://yourdomain - http://yourdomain and http://ip - http://ip to access the website right?


Posted By: rigg
Date Posted: 02 December 2003 at 2:35pm

Originally posted by AnthraX AnthraX wrote:

you are running your website from a private server in your private workgroup or something like that right? and you can use http://computername - http://computername , http://yourdomain - http://yourdomain and http://ip - http://ip to access the website right?

Yes, itīs a private server, but from home I can only use http://computername - http://computername to access it. My router - firewall stops me to use http://mydomain - http://mydomain or ip.

(ok, I can connect through modem just to try but thats a slow way. I use friends to test-upload )



Posted By: Semikolon
Date Posted: 03 December 2003 at 9:18am

ok.. then i cant provide more help..... sorry man.. you could maybe try to configure your router software or something like that..




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