diff options
author | neodarz <neodarz@neodarz.net> | 2017-01-25 11:50:27 +0100 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2017-01-25 11:50:27 +0100 |
commit | 8e65ac05eb7778785602f4504465e1dcbf035812 (patch) | |
tree | 82f5178be54b732e289ba2ffadf02b4de6099aba /lib | |
parent | 033d07a519bac03fdfd28ca15e09cc287e80fd14 (diff) | |
download | the_transcriber_backend-8e65ac05eb7778785602f4504465e1dcbf035812.tar.xz the_transcriber_backend-8e65ac05eb7778785602f4504465e1dcbf035812.zip |
Add unfonctional code for upload a file
Diffstat (limited to 'lib')
-rw-r--r-- | lib/the_transcriber_backend/endpoint.ex | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/the_transcriber_backend/endpoint.ex b/lib/the_transcriber_backend/endpoint.ex index a7b1478..32987a5 100644 --- a/lib/the_transcriber_backend/endpoint.ex +++ b/lib/the_transcriber_backend/endpoint.ex @@ -25,9 +25,10 @@ defmodule TheTranscriberBackend.Endpoint do plug Plug.Logger plug Plug.Parsers, - parsers: [:urlencoded, :multipart, :json], + parsers: [:urlencoded, :multipart, :json, :length], pass: ["*/*"], - json_decoder: Poison + json_decoder: Poison, + length: 80_000_000 plug Plug.MethodOverride plug Plug.Head |