View Full Version : Uppercase images
March 8th, 2008, 12:26 AM
Is there any way we can keep the uppercase letters in image names?
I know there is one strtolower on the upload.php file... but that doesn't seem to be the right one to change.
March 8th, 2008, 08:28 AM
strtolower(); - all alphabetic characters converted to lowercase
Take a look @ Line 263
$imageinfo['title'] = ucwords(strtolower($imageinfo['title']));
$imageinfo['title'] = ucwords($imageinfo['title']);
This will only ensure the 1st letter is Cap and leave the rest of the name alone.
March 10th, 2008, 02:37 AM
Did that... thanks Zachariah
And I also changed
$filename = strtolower($name.'.'.$ext);
$filename = ($name.'.'.$ext);
but now I can't upload JPG extensions... only jpg is there a way to make it like this
$filename = $name.'.'.(strtolower($ext));
NEVERMIND... answered my own question with the above code... it works now... and I didn't need to use your code Zachariah... sorry about that I should have made myself clear in the first post.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.