Skip to content

Instantly share code, notes, and snippets.

@masteinhauser
Created August 7, 2014 14:00
Show Gist options
  • Save masteinhauser/ff930eb28138a7a6c57c to your computer and use it in GitHub Desktop.
Save masteinhauser/ff930eb28138a7a6c57c to your computer and use it in GitHub Desktop.
defmodule Frontend.VideoController do use Phoenix.Controller
plug Plug.Parsers, parsers: [:urlencoded, :multipart], limit: 1_000_000_000
def upload(conn, %{"file" => file, "name" => name}) do
send_response(conn, 200, "text/plain", "Upload Received: file => #{file}, name => #{name}")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment