mirror of
https://github.com/fly-apps/live_beats.git
synced 2024-11-22 08:01:00 +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
|
changeset
|
||||||
|> Ecto.Changeset.put_change(:mp3_filename, filename)
|
|> 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
|
else
|
||||||
changeset
|
changeset
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue