-
Notifications
You must be signed in to change notification settings - Fork 19
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
How to use with json api #19
Comments
I'll make a JSON-based usage guide in the near future. When you upload to /attachments (usually to the cache store, so {
"id": "file ID",
"uri": "exfile://cache/file ID"
} You can then use the |
Thanks for the quick response. Just to make sure I understand, an upload process would look something like this: |
That's correct! I've opened a new issue about the docs I talked about before (#20). Re-open this issue if you're having any problems with the flow above. |
I'm wondering how i can integrate this into a phoenix json api, to be exact I'm not sure how to upload a photo to a specific model. In the example, it shows you can do
foward "/attachments", Exfile.Router
but how would I do this on a per resource basis so that I can upload files for my User models avatar field for example?The text was updated successfully, but these errors were encountered: