added logging in upload file method and all exceptions