Fix warning in upload_file
_The documentation is not available anymore as the PR was closed or merged._
Fix warning:
```
FutureWarning: Pass path_or_fileobj='...' as keyword args. From version 0.7 passing these as positional arguments will result in an error
```