85
rated 0 times
[
88]
[
3]
/ answers: 1 / hits: 5330
/ 3 Years ago, sun, july 26, 2020, 12:00:00
I use bootstrap custom file input - and this is very good thing, but i dont know how show all my uploaded files. Every time when i try select multiple files and upload them - all passed correctly, except this - in input form shows only first file.
Code
<form>
<div class="custom-file">
<input type="file" class="custom-file-input" id="customFile">
<label class="custom-file-label" for="customFile">Choose file</label>
</div>
</form>
<script>
// Add the following code if you want the name of the file appear on select
$(".custom-file-input").on("change", function() {
var fileName = $(this).val().split("\").pop();
$(this).siblings(".custom-file-label").addClass("selected").html(fileName);
});
</script>
I can add multiple = ""
to form code - but what should I add to make all files for upload appear in the input line?
More From » html