arc icon indicating copy to clipboard operation
arc copied to clipboard

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

Open david-nel opened this issue 5 years ago • 0 comments

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"

david-nel avatar Apr 29 '20 14:04 david-nel