stavro / arc

:paperclip: Flexible file upload and attachment library for Elixir
1.16k stars 210 forks source link

MyApp.Avatar.url({filename, scope}) returns path with leading slash #295

Open david-nel opened 4 years ago

david-nel commented 4 years ago

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"