Print Page | Close Window

Upload Folder Naming

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=13272
Printed Date: 12 April 2026 at 4:04am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Upload Folder Naming
Posted By: jwhisler
Subject: Upload Folder Naming
Date Posted: 09 January 2005 at 1:55am

I recently found an issue (for me an issue) with the naming convention of the individual users upload folder.  The creation of the upload folder for example user named "Big Guy" would name the folder "BigGuy" ... the process seems to be stripping out the " " or space in the name.  We run into problems when another user registers as BigGuy.  If BigGuy uploads a photo he does not receive a unique upload folder rather the upload folder created for Big Guy (folder named BigGuy) is used.  I searched through many posts here for a couple of hours and could not find this posted (I am however a self admitted horrible search-er).  I began to look through the code.....  seems in upload_images.asp  strUserFolderName is being set to strLoggedInUsername... then subjected to the decodestring and charaterstrip functions...  characterstrip is where we are loosing the space (ASCII 32). 

Now to my question...  I am sure that characterstrip is being used all over the forum...  for what purpose was the space removed?  I thought of setting the space to an underscore by that is also stripped by charaterstrip.   For the record I am using Persits ASPUpload...
 
Thanks in advance for any data that you can provide. 
 
 



Replies:
Posted By: WebWiz-Bruce
Date Posted: 09 January 2005 at 6:24am
Uploads are only placed in folders named after the members username as a guide for the forum admin to help mange uploads via FTP and was only bought in as some forum admins didn't like that all uploads use to be in the one folder.

It won't matter if multiple users share the same upload folder from the point of view of the forum running, as files that are uploaded that have the same name have the file name changed so other files are not over written.

Sometimes folders are not identical to the members username just to prevent any issues that may arise from path problems that some characters can course.


-------------
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