Question: Currently I'm using Altair to upload files (in my case it's just for images) to my GraphQL API. However, all my other routes are stored in postman and it'd be nice if I could use just one application - Postman - for everything.

In Altair I can simply select an image and store that as a variable that I put as the value for my GraphQL Upload field. 

Does anyone know if Postman supports that (or a similiar) feature?

Thank you!

Answer: 
The above solution didn't work for me but helped as a base.

I've inspected other GraphQL server requests in my browser and tried emulating them.

This is how it works for me:

[![Postman screenshot](https://i.stack.imgur.com/mETkj.png)](https://i.stack.imgur.com/mETkj.png)

My server runs Django with Graphene, the difference may be there (?) I guess
you can use form-data for the same

[![enter image description here](https://i.stack.imgur.com/OzHAk.png)](https://i.stack.imgur.com/OzHAk.png)

you have add the below line to your graphql schema file

```
scalar Upload

type Mutation {
uploadFloorMap(floorMapImage: Upload!) : String
}

```

please add the below maven dependecies and modify your code to add new configuration

```
    <dependency>
        <groupId>com.graphql-java-kickstart</groupId>
        <artifactId>graphql-java-servlet</artifactId>
        <version>14.0.0</version>
    </dependency>
    <!-- https://mvnrepository.com/artifact/com.graphql-java/graphql-java-extended-scalars -->
    <dependency>
        <groupId>com.graphql-java</groupId>
        <artifactId>graphql-java-extended-scalars</artifactId>
    </dependency>

```

add configuration code

```
import graphql.kickstart.servlet.apollo.ApolloScalars;
import graphql.schema.GraphQLScalarType;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class GraphQLConfiguration {

@Bean
public GraphQLScalarType uploadScalarDefine() {
return ApolloScalars.Upload;
 }
}

```