added uploaded file extension conversion to lovercase