Author |
Topic |
weeweeslap
Senior Member
USA
1077 Posts |
Posted - 14 January 2007 : 17:11:15
|
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 |
|
weeweeslap
Senior Member
USA
1077 Posts |
Posted - 15 January 2007 : 02:00:40
|
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 |
|
|
weeweeslap
Senior Member
USA
1077 Posts |
Posted - 15 January 2007 : 02:14:37
|
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 |
|
|
pdrg
Support Moderator
United Kingdom
2897 Posts |
Posted - 15 January 2007 : 09:20:28
|
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 :) |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 15 January 2007 : 13:32:34
|
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. |
|
|
|
weeweeslap
Senior Member
USA
1077 Posts |
Posted - 15 January 2007 : 13:58:58
|
Thanks for the info, this is great for the antileeching as I suffered from that from the various videos that we host |
coaster crazy |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 17 January 2007 : 17:08:31
|
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 |
|
|
weeweeslap
Senior Member
USA
1077 Posts |
Posted - 17 January 2007 : 17:54:00
|
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 |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 17 January 2007 : 18:28:58
|
Can you E-mail me one of these track files? |
|
|
|
weeweeslap
Senior Member
USA
1077 Posts |
Posted - 17 January 2007 : 19:18:49
|
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 |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 17 January 2007 : 19:26:13
|
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. |
|
|
|
weeweeslap
Senior Member
USA
1077 Posts |
Posted - 17 January 2007 : 19:32:12
|
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 |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 17 January 2007 : 19:39:24
|
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 |
|
|
weeweeslap
Senior Member
USA
1077 Posts |
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 17 January 2007 : 21:54:52
|
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. |
|
|
|
Topic |
|