Newbie Question (experimenting a bit)
in files_live.ex
Having this code, which outputs a link with the path of a file in file.path in a render(assigns) function, how should I prepend “file:///” to the file.path so that it shows up like file:///mypath instead of localhost:4000/mypath ?
Tried several things with concatenation but nothing seemed to work
<%= for file <- @files do %>
<.link href={file.path}> <%= file.filename %></.link>
<% end %>