Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Upload path
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Upload path

 Post Reply Post Reply
Author
Alski View Drop Down
Newbie
Newbie


Joined: 11 October 2004
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alski Quote  Post ReplyReply Direct Link To This Post Topic: Upload path
    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

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.