Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using SharePoint 2.0 as an pseudo FTP point

Status
Not open for further replies.

haslamjd

IS-IT--Management
Oct 26, 2007
8
US
My boss asked me to see if SharePoint 2.0 can be used to let non-compnay members in to download files like logos and images. I have no clue if this is possible or not, I would think that to use SharePoint you would have to be logged into the domain. My boss doesn't want to maintain different locations for clients to access files. Perhaps pointing the FTP to a SharePoint folder would do it...I don't know...That is why I am here, to seek help and information.

Has anyone looked into this before, or know if it is even possible?
 
Yes, it is possible to publish a SharePoint site externally. Quite a bit of work if all you want to do is give access to download files.

Take a look at my site:
This is an ASP site that dynamically creates links to files in the directory.

The basic code for this (minus my formatting information) is simple. You need to change what is in [red]red[/red] to reflect your directory and file name. Put the ASP file in the same directory as the downloads:

Code:
<%@ LANGUAGE="VBSCRIPT" %>
<%[green]
'==========================================================================
'
' NAME: publicdownloads.asp
' AUTHOR: Mark D. MacLachlan , The Spider's Parlor
' URL: [URL unfurl="true"]http://www.thespidersparlor.com[/URL]
' DATE  : 10/27/2007 
' COPYRIGHT (c) 2007 All Rights Reserved
'
' COMMENT: Dynamically creates download links.
'
'    THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
'    ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
'    THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
'    PARTICULAR PURPOSE.
'
'    IN NO EVENT SHALL THE SPIDER'S PARLOR AND/OR ITS RESPECTIVE SUPPLIERS 
'    BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
'    DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
'    WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
'    ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
'    OF THIS CODE OR INFORMATION.
'
'==========================================================================[/green]
%>
<html>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Public Downloads</title>
</head>

<body>
<%
		set directory=server.createobject("scripting.filesystemobject")
		set allfiles=directory.getfolder(server.mappath("/[red]publicdownloads/[/red]"))

		
		Dim count
		count = 0
		For each directoryfile in allFiles.files 
		count = count + 1
		Next
		
		If count = 0 Then
			Response.Write "Sorry no files to display.<br>"
		Else
		
		[green]
		' Lists all the files found in the directory[/green]
		For each directoryfile in allFiles.files 
			If directoryfile.name <> "[red]publicdownloads.asp[/red]" Then
				response.write "<br><a href=/[red]publicdownloads/[/red]"[green]
				' Write out the name of the document[/green]
				response.write server.urlencode(directoryfile.name) 
				response.write ">"[green]
				' Write out the name of the document[/green]
				response.write directoryfile.name
				response.write "</a><br>"
			End If[green]			
		' End for next loop to list documents[/green]
		Next 
		End If				
		%> 
</body>
</html>

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
So what is the status on this?

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Thanks Mark,

I am working through your code now (first chance I've had...darn pesky users...)and it looks like this is going to do well for what I need it to do. I really appreciated the reply to my post!

Good-day!

Haslamjd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top