Initial file uploads with copying

This commit is contained in:
Chris McCord 2021-11-01 16:00:04 -04:00
parent 50ecdb8ced
commit efa980033d

View file

@ -30,7 +30,7 @@ defmodule LiveBeats.MediaLibrary.Song do
changeset
|> Ecto.Changeset.put_change(:mp3_filename, filename)
|> Ecto.Changeset.put_change(:mp3_path, "priv/uploads/songs/#{filename}")
|> Ecto.Changeset.put_change(:mp3_path, "priv/static/uploads/songs/#{filename}")
else
changeset
end