"naveenbalraj" <webforumsuser@macromedia.com> wrote in
message news:gn1juu$t2a$1@forums.macromedia.com...
> Hi All,
>
> I have a situation, where I need to access something
outside wwwroot folder.
> Meaning, I have created a folder 'uploads' outside
wwwroot, and have documents
> in that. Now I need to browse those document when inside
the application. For
> example, I'm in this page,
http://sample.com/index.cfm.
Now, when the user is
> on this page. I need to access the document, outside
wwwroot. How can I browse
> this.
>
> More detailed explanation:
>
> folder sturcture:
> Uploads
> wwwroot>sample>index.cfm
>
> I'm in the page sample.com/index.cfm. I have a link
<a href="">Document to
> browse</a> in index.cfm.
> Question: what do I provide, in href, to access the
document inside Uploads
> folder.
>
> Hope this makes sense.
>
> Thanks for any help.
> -Naveen
>
Something like this?
<cfdirectory action="list" filter="*.doc"
directory="C:\Uploads" name="myFiles" sort="Name">
<cfoutput query="myFiles">
<a href="#Name#">#Name#</a><br />
</cfoutput>
--
Ken Ford
Adobe Community Expert - Dreamweaver/ColdFusion
Adobe Certified Expert - Dreamweaver CS3
Adobe Certified Expert - ColdFusion 8
Fordwebs, LLC
http://www.fordwebs.com
http://www.cfnoob.com