-
Notifications
You must be signed in to change notification settings - Fork 149
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
JSON Resource uploading #50
Comments
@SuperDisk I handle this in https://github.com/code-corps/code-corps-api by uploading files as base 64 strings. I'm not super satisfied with this since I'm on Heroku and large files result in time outs. I'd prefer if I could upload to S3 directly and have |
@joshsmith I have direct-to-s3 uploads working locally. I'll push it to |
@stavro that's amazing and will be wonderful to see. Happy to help how I can since it's a major pain point here. |
@SuperDisk I highly recommend sticking to multipart file uploads rather than JSON. This is trivial with Angular and most other frontend clients. Uploading files via JSON is using the wrong tool for the job IMO. |
I will also say that even though our implementation works, I really dislike it. It feels ham-fisted, as @stavro said – wrong tool for the job. |
Here's an open branch: stavro/arc#125 Feel free to start playing with it, though I have a lot more to document. Especially surrounding content disposition. |
@stavro thanks for this! Are you in the Elixir community Slack by chance? I'd tried looking for you there previously but no joy. |
The example in the README.md walks you through uploading a file using a HTML
<form>
. How do you post a file and other attributes to a JSON api?The text was updated successfully, but these errors were encountered: