title: How to upload an image to AWS S3 using GraphQL?
body: <p>I'm uploading a base64 string but the GraphQL gets hung. If I slice the string to less than 50,000 characters it works.  After 50,000 characters, graphQL never makes it to the resolve function, yet does not give an error.  On the smaller strings, it works just fine.</p>
  
  <pre><code>const file = e.target.files[0];
  const reader = new FileReader();
  reader.readAsDataURL(file);
  reader.onloadend = () =&gt; {
    const imageArray = reader.result;
    this.context.fetch('/graphql', {
      body: JSON.stringify({
        query: `mutation s3Upload($img: String!) {
          s3Upload(file: $img) {
            logo,
          }
        }`,
        variables: {
          img: imageArray,
        },
      }),
    }).then(response =&gt; response.json())
    .then(({ data }) =&gt; {
      console.log(data);
    });
  }
  
  const s3Upload = {
      type: S3Type,
      args: {
        file: { type: new NonNull(StringType) },
      },
      resolve: (root, args, { user }) =&gt; upload(root, args, user),
  };
  
  const S3Type = new ObjectType({
    name: 'S3',
    fields: {
      logo: { type: StringType },
    },
  });
  </code></pre>