Skip to content

Features/filename upload #241

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ virtualenv gql-dev
Activate the virtualenv and install dependencies by running:

```console
python pip install -e.[dev]
python -m pip install -e.[dev]
```

If you are using Linux or MacOS, you can make use of Makefile command
Expand Down
2 changes: 1 addition & 1 deletion gql/transport/aiohttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ async def execute(

# Add the extracted files as remaining fields
for k, v in file_streams.items():
data.add_field(k, v, filename=k)
data.add_field(k, v, filename=getattr(v, "name", k))

post_args: Dict[str, Any] = {"data": data}

Expand Down