make oauth token refresh work with file uploads