- 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
waffle
tov1.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_urls
as an an alternative toallow_paths
for 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
NaiveDateTime
instead ofEcto.DateTime
. - (Dependency Update) Require
ecto ~> 2.1
- (Enhancement) Add
delete
override 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
nil
when casting anil
avatar
- 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
Model
toSchema
. In your definitions, wherever you haduse Arc.Ecto.Model
, replace withuse Arc.Ecto.Schema
- ArcEcto follows Ecto in the usage of a singular
params
hash tocast_attachments
rather than a set ofoptional
andrequired
params. ArcEcto encourages the usage of acast_attachments
call 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_ecto
will now apply all%Ecto.Changeset{}
changes withincast_attachments
to the root model prior to passing the model toarc
as a scope.
- (Bugfix) Support the
:empty
value for given params
- Relax
ecto
dependency to>= 0.10.0
to support Ecto v1.0.0