Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > Classic ASP

Reply
 
LinkBack Thread Tools
Old November 29th, 2006, 11:03 AM   #1
New Member
 

Join Date: Dec 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 djanim8 is on a distinguished road
Folder Permissions

I have the following code that checks to see if a folder is created, and if not, then create it:

if fso.folderexists("D:\xxxx\uploads\" & rsUpdateLead("companyID") & "\") = false then
set cf=fso.CreateFolder("D:\xxxx\uploads\" & rsUpdateLead("companyID") & "\")
end if

Then I'm trying to upload the file the user added to the form:

MBRequest("fleUpload").SavePath = "D:\xxxx\uploads\" & rsUpdateLead("companyID") & "\"
MBRequest("fleUpload").Save

but it gives me permission errors for the save..

how do I set the permissions on the folder through code after the folder has been created?
djanim8 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
setting them


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Directory Permissions jewelz How is this done? 10 March 2nd, 2007 12:43 PM


Search Engine Optimization by vBSEO 3.2.0 RC8