Comments (4)
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.
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.
@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.
Thanks, @bellini666 this works!
from graphene-django-plus.
Related Issues (17)
- Make relay interface optional
- ModelCreateMutation generates required fields for CharFields without null=True. HOT 4
- BaseModelMutation doesn't generate input fields for reverse foreign key relationships. HOT 1
- Issues with new 2.3 release HOT 10
- Any plans on merging this functionality with graphene-django? HOT 2
- Check object_permissions argument before check permission inside get_node on ModelType class HOT 2
- Can you add where as input in the query too with this library as in graphene-django-crud library? HOT 1
- When and where to set some field value before mutation? HOT 6
- Why UUID is a Telephone Type? HOT 1
- 'FloatField' object has no attribute 'max_digits' HOT 2
- Use without relay? HOT 2
- ObjectPermissionChecker is undefined when launching without django-guardian installed
- This lib is DEPRECATED (read this)
- Project status - deprecated? HOT 2
- Version 2.1 change breaks current object permissions HOT 2
- Order of imports affects the operation of the library HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphene-django-plus.