All you want to know about Waffle and File Uploads
summary
Library is elixir-waffle/waffle (≈700 stars, millions of downloads) and it validates transforms and stores files as a DB string (filename+timestamp) when the record saves. Supports binaries, paths and URLs, integrates with Ecto via waffle_ecto, and ships S3 and local adapters while community adapters cover GCP/Azure. Validation can use magic bytes validation (calls file plus mime), transformations run via ImageMagick transformations or custom functions, adapters implement put/delete/url, and path needs the DB ID so use a transaction.
AI-written summary · about
related talks
32mBuild your very own web framework in Elixir
34mWhat you can learn from Elixirs HTTP Middleware Plug?
23meqWAlizer - Scaling Erlang development at WhatsApp with static typing
38mHow we Migrated (...) Without Downtime using Elixir
47mElixir for curing product development pains
43mThe River
26mCrafting Fully Custom Code Generators
47mElixir for curing product development pains?
