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

Uploading to file to a directory on the server the user chooses

Status
Not open for further replies.

samauto

IS-IT--Management
Dec 19, 2000
7
US
I am trying to create a admin page where a user can upload files from his computer to the server and put the file in any folder in the server he chooses.

 
Okay, I see. How far did you get yourself, what does your code look like? Where do problems start? Please be more specific, so we can help you out. <webguru>iqof188</webguru>
 
I got the upload working. I wrote code to choose to upload the file within the root directory and the directories within it. I am having difficulty moving through the subdirectorys within the directories in the root directory on the server to place the uploaded file in a directory the user chooses on the server. I would like to do it without using CFFTP.

ex. In the Root Directory, I have a folder called Test, with the Test Folder, I have a folders called TestSub1, and TestSub2.
I can't place the file in the TestSub1 or in the TestSub2 folder.

Thanks for any help!!
Sam
 
&quot;I can't place the file in the TestSub1 or in the TestSub2 folder.&quot; --> permission/authorization problems or something else ?
 
That's probably because there is no code to do that! ;-) What I mean is that you will have to do that on NT, you should have write permission on your TestSub1 and TestSub2 folders.
If you have the right permissions, you don't need CFFTP since CFFILE ACTION=UPLOAD will do. Hope this helps you out. <webguru>iqof188</webguru>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top