Spaces:
Sleeping
Sleeping
DmitrMakeev
commited on
Commit
•
b5d4f65
1
Parent(s):
1f2d576
Update se_mes_im2.html
Browse files- se_mes_im2.html +4 -2
se_mes_im2.html
CHANGED
@@ -39,8 +39,9 @@
|
|
39 |
})
|
40 |
.then(data => {
|
41 |
if (data.urlFile) {
|
|
|
42 |
document.getElementById('message').innerText = 'File uploaded successfully';
|
43 |
-
document.getElementById('imageUrl').innerHTML = `<a href="${
|
44 |
} else {
|
45 |
document.getElementById('message').innerText = 'Failed to upload file';
|
46 |
}
|
@@ -51,4 +52,5 @@
|
|
51 |
});
|
52 |
});
|
53 |
</script>
|
54 |
-
</body>
|
|
|
|
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 |
}
|
|
|
52 |
});
|
53 |
});
|
54 |
</script>
|
55 |
+
</body>
|
56 |
+
</html>
|