Update in authorization method - file upload is returning a bad request