Created
August 7, 2014 14:00
-
-
Save masteinhauser/ff930eb28138a7a6c57c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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