jaimeiniesta
How to upload server-generated content to S3 using waffle?
I need to store screenshots, these will go in a postgres table and I was thinking of using waffle-ecto to attach them, and using image transformations to get different versions of the image.
However, I can only find examples on how to do that if the image comes from a multipart form submitted by a user, but in my case I have the contents of the screenshot as a binary as it’s fetched from an external service in the server. What is the proper way of attaching that using waffle?
The same could apply to other server-generated content like charts, csv, pdf… How to attach that using waffle-ecto?
Marked As Solved
kokolegorille
Also Liked
kokolegorille
You might need to clean up temp file after save… that is what I do with Live Uploads and Waffle Ecto.
Last Post!
kokolegorille
You might need to clean up temp file after save… that is what I do with Live Uploads and Waffle Ecto.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #hex
- #security









