This is in relation to an old post in Dec 2007:
http://forums.webwiz.net/forum_posts.asp?TID=24744
My host has a separate folder on their server that allows uploads and so I must alter the path given in strUploadFilePath (in the setup_options_inc.asp file) (I get a 'Permission Denied' with the default settings)
strUploadFilePath = "../../../files/mydomain.com/uploads" 'This is the upload folder
Using this, I get a problem at the following line in functions_upload.asp:
lngFolderUserID = CLng(Right(strFolder, (Len(strFolder) - Instr(strFolder, "/"))))
The following error message appears at /RTE_popup_file_atch.asp?PB=Y :
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'CLng'
/forum/functions/functions_upload.asp, line 715
Altering the following database field produces the same error:
update main_Configuration set
upload_files_path = '../../../files/mydomain.com/uploads'
How should I alter my code so that the correct path is provided and so that avatars and files are referenced and displayed correctly?
Cheers,
Alski