arc_ecto v0.5.0 Release Notes

Release Date: 2016-12-19 // over 7 years ago
    • ⚡️ (Dependency Update) Require arc ~> 0.6.0
    • 🔒 (Behavior Change) Only allow casting a %Plug.Upload{} by default. If you would like to cast local paths (take caution), you may pass in allow_paths: true. Note: This should be used with caution, as there are security implications with uploading local paths from a user-submitted form.

    Example:

    params = "/path/to/my/file.png"
    cast_attachments(%User{}, params, ~w(avatar), allow_paths: true)