Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multipart/form-data for file uploads #50

Closed
itsgreggreg opened this issue Mar 4, 2018 · 4 comments
Closed

Support multipart/form-data for file uploads #50

itsgreggreg opened this issue Mar 4, 2018 · 4 comments

Comments

@itsgreggreg
Copy link
Contributor

https://hexdocs.pm/absinthe/file-uploads.html

there's currently no way to upload a file without encoding it as a string.

@itsgreggreg
Copy link
Contributor Author

I just realized that being able to even do this relies on a native extension I've been using for handling file blobs.

In any case if 0.19.0 🙏 supports file refs / blobs we'll need multipart post bodies to support file uploads.

@dillonkearns
Copy link
Owner

Hey @itsgreggreg, interesting I didn't know that GraphQL supported that. Can we close this for now and revisit it once Elm has support for it? Also, once we revisit it it would be helpful to see some Elm code to demonstrate how you're doing that so I can wrap my head around it a little better. Thanks!

@itsgreggreg
Copy link
Contributor Author

sounds good to me!

@xtian
Copy link
Contributor

xtian commented Mar 8, 2018

Hey @itsgreggreg, interesting I didn't know that GraphQL supported that.

Just FYI: I believe this functionality is an unofficial extension to GraphQL provided by Absinthe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants