Spaces:
Sleeping
Sleeping
DmitrMakeev
commited on
Commit
•
067e3ba
1
Parent(s):
b5d4f65
Update se_mes_im2.html
Browse files- se_mes_im2.html +1 -2
se_mes_im2.html
CHANGED
@@ -39,9 +39,8 @@
|
|
39 |
})
|
40 |
.then(data => {
|
41 |
if (data.urlFile) {
|
42 |
-
const urlFile = data.urlFile.replace(/\.bin$/, '.jpg');
|
43 |
document.getElementById('message').innerText = 'File uploaded successfully';
|
44 |
-
document.getElementById('imageUrl').innerHTML = `<a href="${urlFile}" target="_blank">Download Image</a>`;
|
45 |
} else {
|
46 |
document.getElementById('message').innerText = 'Failed to upload file';
|
47 |
}
|
|
|
39 |
})
|
40 |
.then(data => {
|
41 |
if (data.urlFile) {
|
|
|
42 |
document.getElementById('message').innerText = 'File uploaded successfully';
|
43 |
+
document.getElementById('imageUrl').innerHTML = `<a href="${data.urlFile}" target="_blank">Download Image</a>`;
|
44 |
} else {
|
45 |
document.getElementById('message').innerText = 'Failed to upload file';
|
46 |
}
|