From 8bc1123f1df34d89f65006a0578c18c9f43cbce0 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Thu, 19 Apr 2018 20:55:08 -0700 Subject: [PATCH] display the filename when uploading --- static/js/cowyo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/cowyo.js b/static/js/cowyo.js index aef9056..1e400a6 100644 --- a/static/js/cowyo.js +++ b/static/js/cowyo.js @@ -371,7 +371,7 @@ function onUploadFinished(file) { if (file.type.startsWith("image")) { prefix = '!'; } - var extraText = prefix+'['+message+'](' + + var extraText = prefix+'['+file.xhr.getResponseHeader("Location").split('filename=')[1]+'](' + file.xhr.getResponseHeader("Location") + ')';