File upload Bootstrap 4自定义表单-添加更多文件
我想添加自定义文件上载,以便添加来自不同文件夹的文件。问题是,即使表单运行良好,它也会显示我上传的第一个文件的文件名。这意味着,当我单击+添加更多文件时,将显示上载的第一个文件的名称,而不是“选择文件”。因此,当我选择文件时,我希望显示其文件名 你能帮帮我吗File upload Bootstrap 4自定义表单-添加更多文件,file-upload,multiple-file-upload,File Upload,Multiple File Upload,我想添加自定义文件上载,以便添加来自不同文件夹的文件。问题是,即使表单运行良好,它也会显示我上传的第一个文件的文件名。这意味着,当我单击+添加更多文件时,将显示上载的第一个文件的名称,而不是“选择文件”。因此,当我选择文件时,我希望显示其文件名 你能帮帮我吗 <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type&q
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<!-- Vender -->
<link href="css/bootstrap.min.css" rel="stylesheet" />
<!-- Main CSS (SCSS Compile) -->
</head>
<body>
<div class="caption">Upload files</div>
<div class="custom-file mb-2" id="id1">
<input type="file" class="custom-file-input" id="file" multiple="" name="file[]"">
<label class="custom-file-label" for="customFile">Choose file</label>
</div>
</div>
<div>
<a href="#" class="text-brand add-more" data-id="#id1">+ Add more</a>
</div>
<script src="js/jquery-1.12.4.min.js"/>
<script src="js/main.js"/>
</body>
</html>
上传文件