arc
arc copied to clipboard
MyApp.Avatar.url({filename, scope}) returns path with leading slash
Environment
- Elixir 1.5
- Arc 0.11.0
- Arc_ecto 0.11.0
- Windows 10, 64 bit
Expected behavior
With config.exs: ... config :arc, storage: Arc.Storage.Local, storage_dir: Path.expand("./uploads") ...
When calling MyApp.Avatar.url({filename, scope}) it should return the path to the file.
Actual behavior
It returns the path with a leading slash. As an example I receive "/c:/Coding/Projects/Boomhuis/boomhuis/uploads/original_2f593957-642a-4d5c-a696-34e889fb249c.JPG"