Giter Site home page Giter Site logo

#support #UploadType about graphene-django-plus HOT 4 CLOSED

0soft avatar 0soft commented on June 10, 2024
#support #UploadType

from graphene-django-plus.

Comments (4)

bellini666 avatar bellini666 commented on June 10, 2024

Hi @nietzscheson

I'm failing to understand why the file didn't upload from you example.

Either way, I haven't write any tests with file upload yet (something that would be nice to add to this repo =P). But we use that exactly feature with https://github.com/jaydenseric/apollo-upload-client on our projects here. You can probably check how that lib does the upload so you can mimic it, and also make sure that the graphene test client does allow for you to attach a file upload to it.

from graphene-django-plus.

nietzscheson avatar nietzscheson commented on June 10, 2024

Hey, @bellini666... In the project's configuration are we need something more? I don't know... this package: https://pypi.org/project/graphene-file-upload/ or this graphene view: https://github.com/lmcgartland/graphene-file-upload/blob/master/graphene_file_upload/django/__init__.py

from graphene-django-plus.

bellini666 avatar bellini666 commented on June 10, 2024

@nietzscheson graphene-django-plus already provides something very similar to that package. When using the UploadType you need to use its custom GraphQLView which extends the graphene's base one and adds support for the UploadType itself.

from graphene-django-plus.

nietzscheson avatar nietzscheson commented on June 10, 2024

Thanks, @bellini666 this works!

from graphene-django-plus.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.