You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"
The text was updated successfully, but these errors were encountered:
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"
The text was updated successfully, but these errors were encountered: