Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
add documentation for storage_dir conf option (stavro#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedep authored and stavro committed Jan 9, 2018
1 parent 28e6bd9 commit 485ea0d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,14 @@ This means it will first look for the AWS standard AWS_ACCESS_KEY_ID and AWS_SEC

**Configuration Option**

* `arc[:storage_dir]` - The storage directory to place files. Defaults to `uploads`, and can be overridden by each uploader. A common pattern for user profile pictures is to store each user's uploaded images in a separate subdirectory based on their primary key:
* `arc[:storage_dir]` - The storage directory to place files. Defaults to `uploads`, but can be overwritten via configuration options `:storage_dir`

```elixir
config :arc,
storage_dir: "my/dir"
```

The storage dir can also be overwritten on an individual basis, in each separate definition. A common pattern for user profile pictures is to store each user's uploaded images in a separate subdirectory based on their primary key:

```elixir
def storage_dir(version, {file, scope}) do
Expand Down

0 comments on commit 485ea0d

Please sign in to comment.