From d6755486b21451f051d8e11768167a3ebe49d6d0 Mon Sep 17 00:00:00 2001 From: andreimarcu Date: Wed, 15 Jun 2016 00:16:57 -0700 Subject: [PATCH] Sanitize upload response (Fixes #79) --- static/js/upload.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/js/upload.js b/static/js/upload.js index 1a79be1..6ebcfa6 100644 --- a/static/js/upload.js +++ b/static/js/upload.js @@ -88,6 +88,9 @@ Dropzone.options.dropzone = { if (resp.error) { file.fileLabel.innerHTML = file.name + ": " + resp.error; } + else if (resp.includes("