Ah! That did it. Interesting, in the dev.exs if I change root: Path.expand(Path.join(__DIR__, "/priv/static/images/posts")) to: root: "priv/static/images/posts" I get an error:
== Compilation error in file lib/ciao/images/post_images.ex ==
** (File.Error) could not make directory (with -p) "/priv/static/images/posts": no such file or directory
(elixir 1.13.1) lib/file.ex:316: File.mkdir_p!/1
lib/ciao/images/storage/local_provider.ex:13: Ciao.Storage.LocalProvider.init/1
lib/ciao/images/post_images.ex:12: (module)
So now I have two variables, root and relative:
config :ciao, Ciao.Images.PostImages,
provider: Ciao.Storage.LocalProvider,
root: Path.expand(Path.join(__DIR__, "/priv/static/images/posts")),
relative: "priv/static/images/posts",
url_prefix: "/pics"
I find that to be a bit frustrating, but this is a side project so I’m happy to leave it as is for now. Thank you so much for your help!






















