Upload : change the file extension to lower case

Add a config var in the upload library to be able to lowercase automaticaly the file extension, adding more consistency to the uploads.
The default value is set to FALSE.