diff --git a/lib/live_beats_web/live/song_live/upload_form_component.ex b/lib/live_beats_web/live/song_live/upload_form_component.ex index 102b1ba..8d72240 100644 --- a/lib/live_beats_web/live/song_live/upload_form_component.ex +++ b/lib/live_beats_web/live/song_live/upload_form_component.ex @@ -41,10 +41,6 @@ defmodule LiveBeatsWeb.SongLive.UploadFormComponent do {:noreply, apply_params(socket, params, :validate)} end - def handle_event("validate", %{"_target" => ["mp3"]}, socket) do - {:noreply, drop_invalid_uploads(socket)} - end - def handle_event("save", %{"songs" => params}, socket) do socket = apply_params(socket, params, :insert) %{current_user: current_user} = socket.assigns