Skip to main content
Participant
December 21, 2009
Answered

How to dowload files from a folder in domain

  • December 21, 2009
  • 1 reply
  • 449 views

Hi

I've just started with coldfusion and i'm wondering is there any possibility to download files from domain shared folder, i was trying to solve the problem as same like files stored on local disk but it doesnt work, has someone idea how can i do this i will be thankfull

T.Brudnicki


    This topic has been closed for replies.
    Correct answer Daverms

    Make sure that your ColdFusion service is running under a windows domain account.

    You can follow this technote,

    http://kb2.adobe.com/cps/961/9616b854.html

    1 reply

    Inspiring
    December 21, 2009

    Hi,

    You can use the "cfdirectory" tag to accomplish this,

    You can find more info here,

    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_d-e_03.html

    HTH

    Participant
    December 21, 2009

    Ok i used this example to tests but it still dosen't work

    <html>
    <head>
    </head>

    <body>
    <cfinclude template="download.cfm">
    Dupa i tyle i zacznijmu listowac <br>
    <cfdirectory directory="\\pl1xpd-16286.ta.global\shared_data\applet\" name="dirQuery" action="LIST">
    <br>Wynik<br>
    <cfloop query = "dirQuery">
        <cfoutput>
            #dirQuery.name#
        </cfoutput>
    </cfloop>
    </body>

    </html>

    it looks like that in this folder there is ona file but it doesnt list me, what iam doing wrong?

    DavermsCorrect answer
    Inspiring
    December 21, 2009

    Make sure that your ColdFusion service is running under a windows domain account.

    You can follow this technote,

    http://kb2.adobe.com/cps/961/9616b854.html