fix filename

This commit is contained in:
神楽坂·喵
2019-11-22 11:12:44 +08:00
parent cddf252db9
commit ea5dcc60ae

View File

@ -224,6 +224,14 @@
<script src="/static/js/jquery-3.4.1.min.js" crossorigin="anonymous"></script>
<script src="/static/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
<script>
$('#uploadSelectFile').on('change', function () {
//get the file name
var fileName = $(this).val().replace('C:\\fakepath\\', " ");
//replace the "Choose a file" label
$(this).next('.custom-file-label').html(fileName);
})
</script>
</body>
</html>