coolphpdude Posted August 5, 2008 Share Posted August 5, 2008 I'm having no luck asking how to allow a picture with an uppercase file extension (picture.JPG) to be uploaded so can someone tell me how to take in the file extension and then convert it to lowercase? Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted August 5, 2008 Share Posted August 5, 2008 Why not use strtolower() Quote Link to comment Share on other sites More sharing options...
BioBob Posted August 5, 2008 Share Posted August 5, 2008 Id probably stick with one format instead of trying to go back and forth IF that is whats causing you grief. $file_name = strtolower($_POST['image_name']); Quote Link to comment Share on other sites More sharing options...
coolphpdude Posted August 5, 2008 Author Share Posted August 5, 2008 http://www.phpfreaks.com/forums/index.php/topic,210260.0.html That's my problem ^^ but no one seems to be able to help me with that so im trying to find a work around solution. basically i can only upload pictures with a lowercase file extension, if i try doing it with an uppercase file extension it says the file type is invalid. I'll give this a go. Quote Link to comment Share on other sites More sharing options...
coolphpdude Posted August 5, 2008 Author Share Posted August 5, 2008 hmmm that didn't work so im still stuck Quote Link to comment Share on other sites More sharing options...
coolphpdude Posted August 5, 2008 Author Share Posted August 5, 2008 right got it working, wen i copied in that code i accidently replace something i needed!! cheers for your help Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.