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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 non-url download link?
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 3

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 15 January 2005 :  16:18:20  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
I've read the manual and the code is correct (afaik)..
The txt-file is updated:
http://gotlandrace.no-ip.com/forum/aspuploadtest.txt

It's working on another server, something's not right with my server =)
What could be the problem?

/Tribaliztic
- www.gotlandrace.se -

Edited by - tribaliztic on 15 January 2005 16:29:16
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 15 January 2005 :  17:56:16  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
You want
Upload.SendBinary
not
Upload.SaveAs

-Stim
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 15 January 2005 :  18:29:58  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
I have Upload.SendBinary, but it still show the file and don't ask if I want to dl/save it. I uploaded my code on another server and it worked right away.
I'll try and find out how I check if the aspupload component is installed ok.

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 15 January 2005 :  21:01:34  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
According to that text file you have:

	  strSql = "UPDATE FORUM_DOWNLOADS SET D_DOWNLOADS=" & dlCount & " WHERE D_ID=" & fileId & ""
	my_Conn.Execute (strSql)
	   Set Upload = Server.CreateObject("Persits.Upload")
	 Upload.File.SaveAs "c:\wwwroot\forum\downloads" & "\" & fileName, True, "application/octet-stream", True
	end if


Which should be:


	  strSql = "UPDATE FORUM_DOWNLOADS SET D_DOWNLOADS=" & dlCount & " WHERE D_ID=" & fileId & ""
	my_Conn.Execute (strSql)
	   Set Upload = Server.CreateObject("Persits.Upload")
	 Upload.SendBinary "c:\wwwroot\forum\downloads" & "\" & fileName, True, "application/octet-stream", True
	end if

-Stim
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 16 January 2005 :  03:40:06  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
As I said, the text file wasn't updated. Now it is, and the code is working on another server so it must be that aspupload isn't configured correctly or some other IIS settings.
I get "access denied" when trying to dl a file.

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 16 January 2005 :  06:18:12  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
YES!!!

Incorrect MIME-types in the IIS was the problem.. Well.. NO MIME-types actually..

This is SO cool =)
Thanks alot for all your help!

Now it's only the admin page and a neat download lister that's left.

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 20 January 2005 :  06:05:45  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
I modded the Classifieds-mod and use that as admin page and to display different categories of files available for download.
The mime-types are found here: http://www.onlineworkshop.net/misc/MIME_Types_in_IIS.htm

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Previous 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.31 seconds. Powered By: Snitz Forums 2000 Version 3.4.07