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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Server Directory View in Coldfusion

Status
Not open for further replies.

maverik59

Programmer
Oct 30, 2002
67
GB
Hi Is it possible to create a view of the files on a server. I am new to coldfusion but have successfully created a file upload page using cffile. Using the code below taking values(file) from a form.

<cffile action=&quot;upload&quot;
destination=&quot;#GetDirectoryFromPath(GetCurrentTemplatePath())#\&quot;
nameconflict=&quot;overwrite&quot;
filefield=&quot;Form.fileName&quot;>

<cfif cffile.fileWasSaved EQ &quot;NO&quot; and cffile.fileWasOverwritten EQ &quot;NO&quot;>
The file #cffile.ClientFileName#.#cffile.ClientFileExt# failed to upload.
<cfelse>
You uploaded #cffile.ClientFileName#.#cffile.ClientFileExt# successfully
to the following directory : #serverDirectory##serverFile#
</cfif>
</cfoutput>


Now i would like to see these files,i and later maybe have finctionality to move name ,rename them through a &quot;explorer&quot; type interface in my browser. Any Help much appreciated.
Simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top