Question : how to use CFCONTENT to deliver files from a folder outside web root, to a web browser? and loop through a series of fileIDs associated with a DocumentID

ColdFusion 8

Task in brief: I need to use the CFCONTENT tag to deliver files from a folder outside web root, to a web browser.

In detail:
It's not just one file. I need to deliver a group of fileIDs associated with a DocumentID. Each "Document" (database record) has a number (0 - 4 or so) of "files" (PDF, Word, Excel, PPT mostly) associated with it. I need to deliver these files to a web browser page. The files must be associated with the correct DocumentID.

I've been reading up here on the use of the CFCONTENT tag:
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_c_11.html
http://kb2.adobe.com/cps/405/kb405330.html

and I have reviewed Azadi's helpful advice here: http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/Cold_Fusion_Markup_Language/Q_25426799.html

But I am not sure how to formulate the CFCONTENT tag, and I have a feeling I need to modify my query.

My query looks like this:

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
<!--- query getTopicsAndDocuments: select columns from tables tbl_CEP_Documents D, tbl_CEP_Document_Topic T, tbl_Document_Has_Topic H, tbl_CEP_files F --->
<!--- to display CEP Document Title, Author, Abstract, Publication Date; and CEP Files associated with those documents; and download links to those files --->

<cfquery name="getTopicsAndDocuments" datasource="#ds#">
SELECT D.DocumentID
  	 , D.DocumentTitle
     , D.DocumentType
     , D.DocumentAuthor
     , D.DocumentAbstract
     , D.DocumentPublicationDate
     , T.DocumentTopicID
     , T.DocumentTopic
     , H.DocumentID
     , H.DocumentTopicID
     , F.DocumentID 
     , F.FileID
     , F.FileName
     , F.FileLinkText
     , F.FileExtension
     , F.FileType
     , F.FileSize
FROM tbl_CEP_Documents D, tbl_CEP_Document_Topic T, tbl_Document_Has_Topic H, tbl_CEP_files F
WHERE D.DocumentID = H.DocumentID
AND D.DocumentID = F.DocumentID
AND H.DocumentTopicID = #url.DocumentTopicID#
ORDER BY D.DocumentPublicationDate DESC
</cfquery>


My cfoutput looks like this:

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
<!--- query getTopicsAndDocuments; list Document Title, Author, Abstract, Publication Date; and CEP Files associated with those documents; and download links to those files --->

<cfoutput query="getTopicsAndDocuments" group="DocumentTitle">

<h3>#DocumentTitle#</h3>
<p class="documentText">

<em>Author(s):</em> <span class="black">#DocumentAuthor#</span><br />
<em>Published:</em> <span class="black">#DateFormat(DocumentPublicationDate, "mmmm d, yyyy")#</span><br />
#DocumentAbstract#<br />
<strong>Download:</strong>
 <a href="cfcontent_file.cfm">#FileLinkText#</a>
(#FileExtension#, #FileSize# bytes)

</p>

</cfoutput>



And file cfcontent_file.cfm contains only:

<cfcontent type = "#getTopicsAndDocuments.FileType#" file = "c:\upload\cep-dc.org\#getTopicsAndDocuments.FileName#" deleteFile = "No" reset="yes">

Finally, you can see this application working, here: http://ebwebwork.com/cep/index.cfm?DocumentTopicID=2

Have I provided enough information, and do you need to see the entire application to offer an opinion?

Thank you very much as always.

Eric

Other details:
Four database tables, in MS SQL Server 2005
tbl_CEP_Documents
tbl_CEP_Document_Topic
tbl_Document_Has_Topic (this table relates the above two tables)
tbl_CEP_files (which associates files with documents)

Answer : how to use CFCONTENT to deliver files from a folder outside web root, to a web browser? and loop through a series of fileIDs associated with a DocumentID

Looks like the other experts have summed up the use of Controllerbased wireless for you.
Cisco, Meru, Aruba, Trapeze and HP ProCurve are among some of the manufacturers for enterprise WLAN. As said with controllers, you'll get a single point of management and reporting - so you'll only have to configure SSIDs, authentication, monitoring and reporting on one node, rather than every AP.

I prefer Aruba - I've installed and administered enterprise WLANs with Cisco, Meru and HP - all good, but Aruba had some extra finishing touches in the software. But all manufactureres deliver good WiFi solutions.

The thing with Aruba (and also Cisco and Meru at least), VLANs and swithces is the following; The terminate all VLANs on the controller. So for switch configuration - put all ports connected to APs in statically assigned VLAN for AP (Management VLAN - created during setup) - and still the APs can have multiple SSIDs with multiple VLANs - as long as VLANs is configured on controller and firewall. As stated, you need a PoE switch so that you don't have to drag AC-adapters around the building.

What to consider prior to installing:
* How many users during peak hours?
 - You shouldn't have more than max 25 (10) users per AP. 10 for business critical services, email, AD, database
* What services do you provide?
* how many APs and what band do you plan to deploy?
- make sure you also select 802.11n
- You'd also would benefit from doing a Site Survey prior to installation, download inSSIDer from www.metageek.net. Mainly look for channels in use in 802.11b/g
- Decide what authentication mechanism you want to use (WPA-PSK,WPA2-PSK, 802.1x or Captive Portal)

Why use Aruba:
* encrypted all the way
* advanced buil-tin firewall
* easy to use web GUI
Random Solutions  
 
programming4us programming4us