How to ocreate folder though coding???
-
Hi coders, I am using .NET 3.5 framework. I'm working on a file upload project. What I want to do is give the user the ability to enter a directory name, check to see if it already exists and if not create the folder and upload the files their. What namespaces should I be using? Am I correct in presuming the directory that will house these "user-created directories" will need to have write permissions assigned to it? Thanks for any help in advance.
Anand Desai Developer Atharva Infotech
-
Hi coders, I am using .NET 3.5 framework. I'm working on a file upload project. What I want to do is give the user the ability to enter a directory name, check to see if it already exists and if not create the folder and upload the files their. What namespaces should I be using? Am I correct in presuming the directory that will house these "user-created directories" will need to have write permissions assigned to it? Thanks for any help in advance.
Anand Desai Developer Atharva Infotech
-
Hi coders, I am using .NET 3.5 framework. I'm working on a file upload project. What I want to do is give the user the ability to enter a directory name, check to see if it already exists and if not create the folder and upload the files their. What namespaces should I be using? Am I correct in presuming the directory that will house these "user-created directories" will need to have write permissions assigned to it? Thanks for any help in advance.
Anand Desai Developer Atharva Infotech
Anand Desai wrote:
Am I correct in presuming the directory that will house these "user-created directories" will need to have write permissions assigned to it?
No. The directory that you create will by default get the same permissions as the parent folder. If you have permission to create the folder, you already have write permission.
Despite everything, the person most likely to be fooling you next is yourself.
-
Hi coders, I am using .NET 3.5 framework. I'm working on a file upload project. What I want to do is give the user the ability to enter a directory name, check to see if it already exists and if not create the folder and upload the files their. What namespaces should I be using? Am I correct in presuming the directory that will house these "user-created directories" will need to have write permissions assigned to it? Thanks for any help in advance.
Anand Desai Developer Atharva Infotech
It will be tough to maintain your application's file system if you have many directories created by users. I'd suggest keeping uploaded files in same location, and use URL rewriting which will give a feeling that the files are in specified directory.
Navaneeth How to use google | Ask smart questions
-
It will be tough to maintain your application's file system if you have many directories created by users. I'd suggest keeping uploaded files in same location, and use URL rewriting which will give a feeling that the files are in specified directory.
Navaneeth How to use google | Ask smart questions
Thanks Navneeth!! BTW, thats very usual thought and it did come to my mind also. but this is in-house application, so only 4-5 people will use this and also, folder creation will not be usual for them also, as every new file wont need new folder. (sorry, I cant disclose my project so wont be able to explain in detail) Thanks though for helping and thinking for me!!!
Anand Desai Developer Atharva Infotech