disable extensions lowercase

See all posts Reply

disable extensions lowercase  new!
by Rushhh, 15 years, 4 months ago
Hi this upload script is awesome, I've uses different ones and find this one of the best ones out there.

My question was. I'm upload mulitple files and post the file name to mysql, but if the extension is upcase the script change the extensions to lowercase, but how do I disable the lowercase and leave how it is?

I'm sure it something to do with strtolower?

Thanks and Marry ChristmasReply
Re: disable extensions lowercase  new!
by colin, 15 years, 4 months ago
You cannot disable the lowercase extension.

However, you can do it in the code (there are two instances of strtolower($extension.....).

Note that you can also get the filename, after calling process(), reading $handle->file_dst_name, $handle->file_dst_name_body and $handle->file_dst_name_ext to know what is the new filename.Reply
Re: disable extensions lowercase  new!
by Rushhh, 15 years, 4 months ago
Ok thanks, that was going be my next question, I'll give that a shot.Reply