- Update dependencies
- Update dependencies
- Allow custom error messages to be set on cast (#35)
- (typo) attachements -> attachments (#24)
- Fix compile warning in Elixir 1.11 (#30)
- Move to GtiHub CI from CodeShip CI (#31)
- Use elixir v1.11 as base image
- add logo (#17)
- follow all waffle minor version updates (#18)
- Fix typo (#14)
- trim binary path and skip upload handling for empty values (#15)
- add reference to help pages (#16)
- upgrade
waffletov1.0.0
- update dependencies
- add documentation for
cast_attachemets(#11)
- add tutorial about using id within filepath (#10)
- add credo (#8)
- Pass binary to
cast_attachments(#7)
- Handle nil urls for skipped versions (#6)
- Check for the new using block in Ecto 3.2 (#5)
- update dependencies (#4)
- add a development documentation (#3)
- add CI integration (#2)
- Move project to a new repository and change name to
WaffleEcto
- (Dependency Relax) Require
ecto >= 2.1.0 - (Enhancement) Add
allow_urlsas an an alternative toallow_pathsfor fetching remote files - (Bugfix) updated_at timestamps now truncate to the second
- (Bugfix) Fix Dialyzer warning
- (Bugfix) Add missing Dialyzer type
- (Dependency Update) Require
ecto ~> 2.1 or ~> 3.0
- (Dependency Update) Require
arc ~> 0.11.0
- (Dependency Update) Require
arc ~> 0.10.0
- (Dependency Update) Require
arc ~> 0.9.0
- (Enhancement) Use
NaiveDateTimeinstead ofEcto.DateTime. - (Dependency Update) Require
ecto ~> 2.1
- (Enhancement) Add
deleteoverride to the ArcEcto module. - (Dependency Update) Require
arc ~> 0.8.0
- (Dependency Update) Require
arc ~> 0.7.0
- (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 inallow_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)- (Bugfix) Set column to
nilwhen casting anilavatar
- Relax Ecto dependency to
~> 2.0
- (Bugfix) Don't add version timestamp to signed urls
- (Enhancement) Allow database columns to be loaded without a timestamp. Useful for migrations from other image upload systems or formats.
- (Enhancement) Upgrade to Ecto 2.0rc-3
Upgrade instructions from 0.3.x to 0.4.x:
- ArcEcto follows Ecto in the renaming of
ModeltoSchema. In your definitions, wherever you haduse Arc.Ecto.Model, replace withuse Arc.Ecto.Schema - ArcEcto follows Ecto in the usage of a singular
paramshash tocast_attachmentsrather than a set ofoptionalandrequiredparams. ArcEcto encourages the usage of acast_attachmentscall followed by avalidate_required.
- (Bugfix) Relax Arc dependency to ~> 0.2 to support 0.3.0
- (Bugfix) Allow params objects with atom keys.
- (Dependency Update) Require v0.2.0 of arc.
- (Behavior Change)
arc_ectowill now apply all%Ecto.Changeset{}changes withincast_attachmentsto the root model prior to passing the model toarcas a scope.
- (Bugfix) Support the
:emptyvalue for given params
- Relax
ectodependency to>= 0.10.0to support Ecto v1.0.0