Print Page | Close Window

Upload path

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=25639
Printed Date: 03 April 2026 at 7:09pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Upload path
Posted By: Alski
Subject: Upload path
Date Posted: 22 April 2008 at 4:27pm
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




Replies:
Posted By: WebWiz-Bruce
Date Posted: 23 April 2008 at 8:03am
Changing the location of the upload folder often courses issues, even if you do get it to work IE will often re-write the URL to the images and files so that they are not correctly linked in posts.

You should leave the upload folder in it's default location and place a request with your web host that they grant read, write, and modify permissions on that folder.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net