mirror of
https://github.com/fly-apps/live_beats.git
synced 2024-12-22 23:26:29 +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