Print Page | Close Window

File & Image Upload

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=10108
Printed Date: 08 April 2026 at 5:28am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: File & Image Upload
Posted By: fbridge2
Subject: File & Image Upload
Date 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)



-------------
old dog eager to learn new tricks



Replies:
Posted By: fbridge2
Date 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



-------------
old dog eager to learn new tricks


Posted By: fbridge2
Date 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?

-------------
old dog eager to learn new tricks



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