Make sure the extension of uploaded files is lowercase