我想上传文件到服务器上。每当我提交,php全局数组$ _FILES是空的。我的文件继续进入$ _POST。文件上传进入POST而不是文件
<form action="process.php" method="POST">
<div class="form-group"></div>
<div class="form-group">
<input type="file" name="uploaded_file">
</div>
<div class="form-group">
<button type="submit" class="btn btn-danger">Upload</button>
</div>
</form>
process.php
<?php
var_dump($_FILES['uploaded_file']);
var_dump($_POST['uploaded_file']);
'enctype =“multipart/form-data”' –
@u_mulder非常感谢您 –
[File not uploading PHP]的可能重复(https://stackoverflow.com/questions/10807280/file-not-上传-php) – Darshan