Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 windows 2003 server and downloads..
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 4

weeweeslap
Senior Member

USA
1077 Posts

Posted - 14 January 2007 :  17:11:15  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
I've set up windows 2003 for my server. But when I try to download a file from any browser the only file type I can download is zip. 95% of the files that I host are of other extensions. Does anyone know of a way to edit such in windows 2003 to allow it to download other file types? I can execute my asp pages and what not fine, but when I try to download other files, it throws out a 404 even though the file really is there. Example:
http://www.weeweeslap.com/track_exchange/upload/Cayenne-BandMiscool-t.nltrack
.nltrack extension, file exists but it does not download

http://www.weeweeslap.com/track_exchange/upload/wolverine2-bockzilla-t.zip
That one downloads just fine.
Are there any settings I should change in order for my downloads to work. I am processing the downloads through a download page but overall the line of code that initiates the download is:
Response.Redirect("upload/" & strDBFileName)
It worked fine in windows 2000 not sure why it wont work in windows 2003.
Thanks for your help!
-Oscar

coaster crazy

dayve
Forum Moderator

USA
5820 Posts

Posted - 14 January 2007 :  18:54:57  Show Profile  Visit dayve's Homepage
Why this is happening:

http://technet2.microsoft.com/WindowsServer/en/library/e5a730ee-a68b-4789-8419-4de4c3c7950d1033.mspx?mfr=true

This will take care of your issue:

download.asp

<% 
    Response.ContentType = "application/x-unknown" ' arbitrary 
    fn = "Cayenne-BandMiscool-t.nltrack" 
    FPath = "c:\inetpub\wwwroot\burningsoulsportal\" & fn 
    Response.AddHeader "Content-Disposition","attachment; filename=" & fn 
 
    Set adoStream = CreateObject("ADODB.Stream") 
    adoStream.Open() 
    adoStream.Type = 1 
    adoStream.LoadFromFile(FPath) 
    Response.BinaryWrite adoStream.Read() 
    adoStream.Close 
    Set adoStream = Nothing 
 
    Response.End 
%>


Demo:

Works: http://www.burningsoulsforum.com/download.asp

Does Not Work: http://www.burningsoulsforum.com/Cayenne-BandMiscool-t.nltrack


Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 15 January 2007 :  02:00:40  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
awesome!, let me write that up in mydownload file and test it out, thanks man, I shall post a reply in a few minutes

coaster crazy
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 15 January 2007 :  02:14:37  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
worked flawlessly, I changed it around a bit as the file name is determine through a db id and what not but it worked out great. I thank you a lot!

coaster crazy
Go to Top of Page

pdrg
Support Moderator

United Kingdom
2897 Posts

Posted - 15 January 2007 :  09:20:28  Show Profile  Send pdrg a Yahoo! Message
jfyi W2K3S is different from W2KS in that everything is turned off (with most restrictive permissions) by default, as opposed to on by default. This means you'll need to sit and enable a few things you want as opposed to them running straight out the box. Dunno if this is related, but if you're just getting your teeth into W2K3S, you'll hit it :)
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 15 January 2007 :  13:32:34  Show Profile  Visit dayve's Homepage
quote:
Originally posted by weeweeslap

worked flawlessly, I changed it around a bit as the file name is determine through a db id and what not but it worked out great. I thank you a lot!


I figured you would have to modify it a bit. I use this routine quite often for forcing downloads and preventing leeching or direct linking.

You're welcome.

Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 15 January 2007 :  13:58:58  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
Thanks for the info, this is great for the antileeching as I suffered from that from the various videos that we host

coaster crazy
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 17 January 2007 :  17:08:31  Show Profile  Visit dayve's Homepage
quote:
Originally posted by weeweeslap

www.weeweeslap.com/track_exchange/
sn: snitztest
pwd: test
click any of those there and in the details page click download. All download 28.8 kb in file size and none are openable.



This issue seems to be with the other problem you had where I shared a script for streaming the download. I don't think the exact problem is with the streaming but probably the upload feature you have. The way to test whether or not it is the download application is to manually put a couple of copies of known good files on the web server and modify the download.asp application to point to them. Download them and see what happens. If they come out fine then I would suspect your upload program to be messing with the files.


Edited by - dayve on 17 January 2007 17:15:50
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 17 January 2007 :  17:54:00  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
http://www.weeweeslap.com/test_download.asp
or
http://www.weeweeslap.com/track_exchange/test_download.asp
I created a test file and when I go access it from the browser, I get an error:

Internet Explorer cannot download test_download.asp from www.weeweeslap.com.
Internet explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.

soo I made a redirect file that simply has: Response.Redirect("test_download.asp")
And I end up with the following error:

ADODB.Stream error '800a0bba'

File could not be opened.

/test_download.asp, line 10


where line 10 is:
adoStream.LoadFromFile(FPath)

and the whole test_Download.asp file is:

<%
    Response.ContentType = "application/x-unknown" ' arbitrary
    fn = "TheSomberlain-Pinhead-t.nltrack"
    FPath = "c:\websites\weeweeslap.com\track_exchange\uploads\" & fn
    Response.AddHeader "Content-Disposition","attachment; filename=" & fn

    Set adoStream = CreateObject("ADODB.Stream")
    adoStream.Open()
    adoStream.Type = 1
    adoStream.LoadFromFile(FPath)
    Response.BinaryWrite adoStream.Read()
    adoStream.Close
    Set adoStream = Nothing

    Response.End
%>

coaster crazy
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 17 January 2007 :  18:28:58  Show Profile  Visit dayve's Homepage
Can you E-mail me one of these track files?

Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 17 January 2007 :  19:18:49  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
sorry for the delay, file sent, I opened one of the files that I downloaded through the website in notepad and notiuced it basically has the html coding of the site in it rather the typr of stuff that should normally appear, that is weird!

coaster crazy
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 17 January 2007 :  19:26:13  Show Profile  Visit dayve's Homepage
Don't worry about the delay, I am a bit tied up myself which is normal during the work week. It does sound like your problem is related to something else though, I'll examing your site a bit more closely later this evening.

Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 17 January 2007 :  19:32:12  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
ok thanks, I am heading off to work in 10 minutes, would you mind e-mailing me your ip so I can add it to our firewall so it lets you in, in case you need to rdc into the server to check stuff out? Thanks

coaster crazy
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 17 January 2007 :  19:39:24  Show Profile  Visit dayve's Homepage
I can't get my IP address until I get home this evening. If you ping burningsoulsforum.com it will resolve to DNS2GO servers so there is no easy way for me to get it right now.


Edited by - dayve on 17 January 2007 19:39:56
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 17 January 2007 :  19:47:40  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
ah okie dokie, uhmm I have to go now to work, if you can work on this later, you can send the ip to sixflagsfiesta@gmail.com Thanks!

coaster crazy
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 17 January 2007 :  21:54:52  Show Profile  Visit dayve's Homepage
Got your E-mail, sent my IP Address. I downloaded the 1.45 megabyte track file you sent to me and I had no problem downloading it. File size and content was the same exact pre and post viewing/downloading. I suspect your upload program is screwing it up.

Go to Top of Page
Page: of 4 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07