我创建了下面的 PHP 表单来将 mp3 文件发送到数据库。<form action="" method="post" id="audioForm" enctype="multipart/form-data"> <div class="form-group"> <div class="row audiosRow"> <div class="col s12"> <div class="file-field input-field"> <div class="btn btn-small"> <span>Track</span> <input type="file" name="file-1"> </div> <div class="file-path-wrapper"> <input class="file-path validate" type="text" placeholder="Upload audio files* (.mp3)" readonly=""> </div> </div> </div> <div class="col s12"> <div class="file-field input-field"> <div class="btn btn-small"> <span>Track</span> <input type="file" name="file-2"> </div> <div class="file-path-wrapper"> <input class="file-path validate" type="text" placeholder="Upload audio files* (.mp3)" readonly=""> </div> </div> </div> <div class="col s12"> <div class="file-field input-field"> <div class="btn btn-small"> <span>Track</span> <input type="file" name="file-3"> </div> <div class="file-path-wrapper"> <input class="file-path validate" type="text" placeholder="Upload audio files* (.mp3)" readonly=""> </div> </div> </div>当我发送图像时,该表格工作正常,但当我发送音频文件时,它不适用于三个或更多。当我制作时,var_dump($_FILES)它会显示array(0){}.所以我认为这可能是一个限制,但我在任何地方都看不到。我检查了 php.ini 配置文件,我upload_max_filesize = 200M有max_file_uploads = 20.那么问题出在哪里呢?请帮我。
- 1 回答
- 0 关注
- 90 浏览
添加回答
举报
0/150
提交
取消