[英]Can't upload audio file with PHP5.5.12 on WampServer 2.5
I have a problem with upload mode in PHP. 我在PHP中的上传模式有问题。 Can you help me ?
你能帮助我吗 ? My form in HTML:
我的HTML表单:
<form action="upload_file.php" enctype="multipart/form-data" method="post">
<input type="file" name="file">
<input type="submit" value="ok">
</form>
My PHP code in 'upload_file.php'
: 我在
'upload_file.php'
PHP代码:
<?php
if (!isset($_FILES['file'])){
echo "Failed";
}
else{
echo "All Ok";
}
?>
When I select image
, text
, zip
, rar
... It report "All Ok" . 当我选择
image
, text
, zip
, rar
...它报告“一切正常” 。 But, If I select audio
or video
, it report "Failed" . 但是,如果我选择
audio
或video
,它将报告“失败” 。 So I can't upload audio file. 所以我无法上传音频文件。 What is wrong ?
怎么了 ? Thank you very much !.
非常感谢你 !。
Make sure that the size of your file does not exceed the limitations listed here (your php.ini
file) 确保文件大小不超过此处列出的限制(您的
php.ini
文件)
# The values are just for example!
; Maximum allowed size for uploaded files.
upload_max_filesize = 3M
; Must be greater than or equal to upload_max_filesize
post_max_size = 3M
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.