diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e4df615a..70750f8e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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 diff --git a/gql/transport/aiohttp.py b/gql/transport/aiohttp.py index 84679365..04c85edf 100644 --- a/gql/transport/aiohttp.py +++ b/gql/transport/aiohttp.py @@ -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}