From 5782a4552475104bf81b424787c2751d5f61ce77 Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 18 Nov 2018 12:27:20 -0500 Subject: [PATCH] Maybe fix last PR --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 8ebf8c6..32fc56c 100644 --- a/app.py +++ b/app.py @@ -640,7 +640,7 @@ def api_upload(): # Read the file into memory cuz if the request fails # no file is corrupted. - buf = file.stream.readall() + buf = file.stream.read() # Write to file (create if not exists) when # everything read successfully.