我在使用PHP上传文件时有问题。这些文件托管在AWS上。我的表单是这样的:
<form name="hello" method="post" action="" enctype="multipart/form-data" >
<label>Image</label>
<input type="file" name="image" />
<label>Audio file</label>
<input type="file" name="audio_file" />
<input type="submit" value="Add" />
</form>
当我提交这个表单什么都没有发生,页面继续加载。我试图通过删除一个文件控制,它工作得很好,即一个文件上传成功。如果我只提交一个文件,那么它工作得很好,但当有两个不同的文件控件时就不行了。
PHP ini设置如下:
max_file_uploads 10
memory_limit 1024M
upload_max_filesize 32M
post_max_size 32M
不知道是什么问题。
谢谢!
问题出在我们的内部网络(静态IP)上。