FSharp.Data.GraphQL icon indicating copy to clipboard operation
FSharp.Data.GraphQL copied to clipboard

File Upload

Open Rajivhost opened this issue 7 years ago • 8 comments

Hi, Any tips on how to handle the file upload?

Rajivhost avatar Jun 15 '18 18:06 Rajivhost

I don't think our library exposes any interface to help with file upload operations, so I think that we could, maybe, implement some common adopted specification to handle file uploads in the future. This one seems promising to me:

GraphQL Multipart Request Spec How to manage file uploads in GraphQL mutations using Apollo/Graphene

ivelten avatar Jul 04 '18 00:07 ivelten

Ok, I'm going to try provide a PR based on this implementation.

Rajivhost avatar Jul 06 '18 13:07 Rajivhost

@Rajivhost how is it going? I can give help with the implementation if you want to.

ivelten avatar Aug 13 '18 19:08 ivelten

I remember writing this a few months ago. It was before the middleware system came into place, but I'm sure adapting it wouldn't be too difficult.

TOTBWF avatar Aug 13 '18 21:08 TOTBWF

Hi @ivelten, yes some help is welcome.

Rajivhost avatar Aug 14 '18 08:08 Rajivhost

@TOTBWF can we have a view of what you made?

Rajivhost avatar Aug 14 '18 08:08 Rajivhost

Sadly, that code was commercial, so no :frowning_face:.

TOTBWF avatar Aug 15 '18 20:08 TOTBWF

@Rajivhost I created a draft pull request for this here. Please, take a look and see what you think.

ivelten avatar Oct 10 '18 20:10 ivelten