Just in case anybody was wondering how I achieved it in the end. I personally hate it when people do not post their solutions. Below is the code I added to the the RTE_setup.asp file. It works great.
'File Attachments
Const blnAttachments = true 'Attach files to the editor contents
dim thbasicpath, myfs, strFileUploadPath
thbasicpath = "my_documents\my_files"
Set myfs=Server.CreateObject("Scripting.FileSystemObject")
If myfs.FolderExists(Server.MapPath(thbasicpath) & "\" & session("UserID") & "_Files") = true Then
strFileUploadPath = thbasicpath & "\" & session("UserID") & "_Files"
Else
myfs.CreateFolder(Server.MapPath(thbasicpath) & "\" & session("UserID") & "_Files")
strFileUploadPath = thbasicpath & "\" & session("UserID") & "_Files"
End if
'Const strFileUploadPath = "my_documents\my_files"
Const strFileTypes = "zip;rar;doc;pdf;txt;rtf;htm;html;gif;jpg;png" 'Separate file types with ;
Const intMaxFileSize = 2048 'Use AspUpload 3.x or above for uploads over 2048KB (size in KB)
Edited by Chappers2000 - 16 August 2009 at 1:44pm