Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Cute Editor for ASP
»
folder for each user to upload
folder for each user to upload
Last post 07-11-2008, 11:12 AM by
JFRanger
. 1 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
07-10-2008, 3:14 PM
42119
Bryan Meller
Joined on 07-09-2008
Posts 9
folder for each user to upload
Reply
Quote
In my site has multiple users and want each one has a folder to upload it possible the cute editor allow only the user to use the folder to upload it, detecting the user's id?
07-11-2008, 11:12 AM
42140
in reply to
42119
JFRanger
Joined on 02-24-2006
Montreal, Canada
Posts 33
Re: folder for each user to upload
Reply
Quote
'
check if user folder exist, if not create it!
userPath= "D:\wwwroot\myApp\uploads\" & IDUSER & "\"
Set fso = CreateObject("Scripting.FileSystemObject")
If Not fso.FolderExists(userPath) Then
Set createMyFolder = fso.CreateFolder(userPath)
end if
set fso = nothing
' tell CE the upload path!
editor.ImageGalleryPath = "/uploads/" & IDUSER & "/documents"
editor.MediaGalleryPath = "/uploads/" & IDUSER & "/documents"
editor.FlashGalleryPath = "/uploads/" & IDUSER & "/documents"
editor.FilesGalleryPath = "/uploads/" & IDUSER & "/documents"