1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

display the filename when uploading

This commit is contained in:
Zack Scholl 2018-04-19 20:55:08 -07:00
parent 5d0523117b
commit 8bc1123f1d

View File

@ -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") +
')';