Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - File & Image Upload
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

File & Image Upload

 Post Reply Post Reply
Author
fbridge2 View Drop Down
Newbie
Newbie


Joined: 29 April 2003
Location: United Kingdom
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote fbridge2 Quote  Post ReplyReply Direct Link To This Post Topic: File & Image Upload
    Posted: 23 April 2004 at 6:31am

I was experiencing a problem where the variable "strUserFolderName" was set to empty during the fileUpload Function. I note that in the function the variable is sent ByRef - is this wise?

Regards Frank

Private Function fileUpload(ByVal strFileUploadPath, ByVal saryFileUploadTypes, ByVal intMaxFileSize, ByVal strUploadComponent, ByRef lngErrorFileSize, ByRef blnExtensionOK, ByRef strUserFolderName)

Back to Top
fbridge2 View Drop Down
Newbie
Newbie


Joined: 29 April 2003
Location: United Kingdom
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote fbridge2 Quote  Post ReplyReply Direct Link To This Post Posted: 23 April 2004 at 10:38am

 

Please disregard the previous claim. It is however the characterStrip() function (in functions_filters.asp) which appears to be faulty. it always returns null. has anyone else seeen this? i wrote a utility to write out the contents of variables and this is the result

 'strUserFolderName="username"
 strUserFolderName = decodeString(strUserFolderName)
 'strUserFolderName="username"
 strUserFolderName = characterStrip(strUserFolderName)
 'strUserFolderName=""

This is in upload_files.asp & upload_images.asp & upload_avatars.asp

Comments would be welcome.
Frank

Back to Top
fbridge2 View Drop Down
Newbie
Newbie


Joined: 29 April 2003
Location: United Kingdom
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote fbridge2 Quote  Post ReplyReply Direct Link To This Post Posted: 23 April 2004 at 10:54am
Further investigations reveal - does it make a difference that I have changed Session.Codepage=65001 because I am using charset "UTF-8" and that is why characterStrip is failing?
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.