Skip to content

Commit

Permalink
display the filename when uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
schollz committed Apr 20, 2018
1 parent 5d05231 commit 8bc1123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/js/cowyo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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") +
')';

Expand Down

0 comments on commit 8bc1123

Please sign in to comment.