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"
Environment
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"