Hello,
I'm creating a resource where the mechanism should:
I put the complete code in jsfiddle: link
and the section of js to be helped, I'll put here tbm:
$(".dragNdropUpload_box input").change(function(){
var create_dragNdropUpload_box = "<div class='dragNdropUpload_box'>"+
"<div class='dragNdropUpload_box_input_layout'>"+
"<span class='icon far fa-plus-square'></span>"+
"<span class='text'></span>"+
"</div><!-- /dragNdropUpload_box_input_layout-->"+
"<input type='file' name='dragNdropUpload_box[]' />"+
"</div><!-- /dragNdropUpload_box-->";
$(".dragNdropUpload").append(create_dragNdropUpload_box);
//setTimeout(function(){
var getFileName = $(this).val().split('\').pop();
alert(getFileName);
$(this).parent().find(".dragNdropUpload_box_input_layout .text").html(getFileName);
//}, 1000);
});//end change