Uploads - How to stop changing case

5 posts by 3 authors in: Forums > CMS Builder
Last Post: June 1, 2013   (RSS)

By theclicklab - May 30, 2013

Hi there, when we upload files, the file names are converted to lowercase. How do we turn this off? Many thanks, Jan

By theclicklab - May 31, 2013

Because we are using this particular cms as a file repository and images get exported out to separate ecommerce stores where all the skus and image references are in upper case. This means we either have convert our ecommerce stores over to lowercase or manually rename every image. 

By gkornbluth - May 31, 2013 - edited: May 31, 2013

Hi,

Just a guess at an approach.

In the file lib/upload_functions.php there are 5 instances of strtolower that change case to all lower case. One has the note: //  file names are saved in lower case for better cross platform compatibility

Make a backup of the file and then see if you can remove some or all of them without breaking things.

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By ross99 - June 1, 2013

Hi Jan

What Jerry is outlining should do the trick.  Definitely keep backups like he suggested. One thing I wanted to add in is that if you are going to make changes to files in the /lib folder, keep in mind that it can make support on your site down the road more challenging.  Also, the next time you upgrade, the changes you make will be overwritten :).

Keep us up to date with how you are making out. 

Ross Fairbairn
http://www.interactivetools.com
consulting@interactivetools.com