aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2017-01-25 11:50:27 +0100
committerneodarz <neodarz@neodarz.net>2017-01-25 11:50:27 +0100
commit8e65ac05eb7778785602f4504465e1dcbf035812 (patch)
tree82f5178be54b732e289ba2ffadf02b4de6099aba /lib
parent033d07a519bac03fdfd28ca15e09cc287e80fd14 (diff)
downloadthe_transcriber_backend-8e65ac05eb7778785602f4504465e1dcbf035812.tar.xz
the_transcriber_backend-8e65ac05eb7778785602f4504465e1dcbf035812.zip
Add unfonctional code for upload a file
Diffstat (limited to '')
-rw-r--r--lib/the_transcriber_backend/endpoint.ex5
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