http method correction for file uploads