Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

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

Upload Folder Naming

 Post Reply Post Reply
Author
jwhisler View Drop Down
Newbie
Newbie


Joined: 03 December 2004
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote jwhisler Quote  Post ReplyReply Direct Link To This Post Topic: Upload Folder Naming
    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. 
 
 
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: 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.
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.