我想上傳文件到服務器上。每當我提交,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