mirror of
https://github.com/fly-apps/live_beats.git
synced 2024-11-21 23:50:59 +00:00
Initial file uploads with copying
This commit is contained in:
parent
50ecdb8ced
commit
efa980033d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue