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.
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>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.