- (Enhancement) Allow overriding the destination bucket in an upload definition. See (stavro#206)
- (Enhancement) Allow overriding the
storage_dir
via configuration - (Enhancement) Skip uploading all files if any of the versions fail (PR: stavro#218)
- (Enhancement) Fix elixir warnings.
- (Enhancement) Allow delete/1 to be overridden.
- (Enhancement) Deletions follow same async behavior as uploads.
- (Minor Breaking Change) URL encode returned urls. If you were explicitly encoding them yourself, you don't need to do this anymore.
- Require Elixir v1.4
- Relax package dependencies
- Fix Elixir v1.4 warnings
- (Enhancement) Disable asynchronous processing via module attribute
@async false
. - (Enhancement) Add retry functionality to remote path uploader
v0.7.0 Requires Elixir 1.4 or above, due to enhancements made with ExAws and Task Streaming
- (Enhancement) Allow asset host to be set via an environment variable
- (Enhancement) Allow downloading and saving remote files
- (Enhancement) Move Arc storage module to config
- (Bugfix) Split conversion arguments correctly when a file name has a space in it
- (Bugfix) S3 object headers must be transferred to ExAws as a keyword list, not a map
- (Bugfix) Don't prepend a forward-slash to local storage urls if the url already starts with a forward-slash.
- (Dependencies) - Upgrade
ex_aws
to rc3
- (Dependencies) - Upgrade
ex_aws
to rc2
- (Dependencies) - Removed
httpoison
as an optional dependency, addedsweet_xml
andhackney
as optional dependencies (required if using S3). - (Enhancement) File streaming to S3 - Allows the uploading of large files to S3 without reading to memory first.
- (Enhancement) Allow Arc to transform and store directly on binary input.
- (Bugfix - backwards incompatible) Return error tuple rather than raising
Arc.ConvertError
if the transformation fails. - (Bugfix) Update
:crypto
usage to:crypto.strong_rand_bytes
- (Enhancement) Optionally set S3 bucket from runtime env var (
config :arc, bucket: {:system, "S3_BUCKET"}
) - (Enhancement) Temporary files created during transformations now include the file extension.
- (Bugfix) Add a leading slash to urls generated from the Local storage adapter.
- (Enhancement) Relax ex_aws dependency to allow
~> 0.5.0
- (Enhancement) Allow returning a list of arguments for transformations to preserve desired groupings.
- (Enhancement) Raise a more helpful error message when attempting a transformation with an executable which cannot be found.
- (Enhancement) Allow transforms via arbitrary system executables.
- (Enhancement) Allow transforms to supply a function to define the transformation args.
- (Deprecation) Deprecate usage of {:noaction} in favor of :noaction for transformation responses.
Upgrade instructions from 0.4.x to 0.5.x:
Arc now favors explicitness in file extension changes rather than scanning with a Regex. If you have a convert
transformation which changes the file extension (through the parameter -format png
argument), you must explicitly add a third tuple argument in the conversion noting the final extension.
Example:
# Change this:
def transform(:thumb, _) do
{:convert, "-strip -thumbnail 250x250^ -gravity center -extent 250x250 -format png"}
end
# To this:
def transform(:thumb, _) do
{:convert, "-strip -thumbnail 250x250^ -gravity center -extent 250x250 -format png", :png} #<--- Note the third tuple argument with the output file extension
end
- (Bugfix) Fix regression using the local filesystem introduced via v0.4.0.
- (Bugfix) Surface errors from ExAws put operations. Parse ExAws errors and return tuple of form
{:error, List.t}
when an error is encountered.
To upgrade and properly support parsing aws errors, add :poison
to your list of dependencies.
Optional dependency added, prompting a minor version bump. While not a strict backwards incompatibility, Arc users should take note of the change as more than an internal change.
- (Enhancement) Introduce
Definition.delete/2
While there is no strict backwards incompatibility with the public API, a number of users have been using
Arc.Storage.S3.delete/3
as a public API due to a lack of a fully supported delete method. This internal method has now changed slightly, thus prompting more than a patch release.
- (Enhancement) Allow specifying custom s3 object headers through the definition module via
s3_object_headers/2
.
- (Enhancement) Allow the version transformation and storage timeout to be specified in configuration
config :arc, version_timeout: 15_000
.
- (Bugfix) Raise
Arc.ConvertError
if ImageMagick'sconvert
tool exits unsuccessfully.
- (Breaking Change) Erlcloud has been removed in favor of ExAws.
- (Enhancement) Added a configuration parameter to generate urls in the
virtual_host
style.
Since erlcloud
has been removed from arc
, you must also remove it from your dependency graph as well as your application list. In its place, add ex_aws
and httpoison
to your dependencies as well as application list. Next, remove the aws credential configuration from arc:
# BEFORE
config :arc,
access_key_id: "###",
secret_access_key: "###",
bucket: "uploads"
#AFTER
config :arc,
bucket: "uploads"
# (this is the default ex_aws config... if your keys are not in environment variables you can override it here)
config :ex_aws,
access_key_id: [{:system, "AWS_ACCESS_KEY_ID"}, :instance_role],
secret_access_key: [{:system, "AWS_SECRET_ACCESS_KEY"}, :instance_role]
Read more about how ExAws manages configuration here.
- (Enhancement: Local Storage) Filenames which contain path separators will flatten out as expected prior to moving copying the file to its destination.
- (Enhancement: Url Generation)
default_url/2
introduced to definition module which passes the given scope as the second parameter. Backwards compatibility is maintained fordefault_url/1
.
- (Bugfix: Storage) Bugfix for referencing atoms in the file name.
- (Enhancement: Storage) Add the local filesystem as a storage option.