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:
parent
5d0523117b
commit
8bc1123f1d
@ -371,7 +371,7 @@ function onUploadFinished(file) {
|
|||||||
if (file.type.startsWith("image")) {
|
if (file.type.startsWith("image")) {
|
||||||
prefix = '!';
|
prefix = '!';
|
||||||
}
|
}
|
||||||
var extraText = prefix+'['+message+'](' +
|
var extraText = prefix+'['+file.xhr.getResponseHeader("Location").split('filename=')[1]+'](' +
|
||||||
file.xhr.getResponseHeader("Location") +
|
file.xhr.getResponseHeader("Location") +
|
||||||
')';
|
')';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user