Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
david-nel opened this issue Apr 29, 2020 · 0 comments
Open

Comments

@david-nel
Copy link

david-nel commented Apr 29, 2020

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant