Tp3.2上传多文件的问题

来源:互联网 发布:扶摇皇后知乎 编辑:程序博客网 时间:2024/06/06 01:26
这种格式,没问题。
<input name="pics[]" type="file">
<input name="pics[]" type="file">
<input name="pics[]" type="file">

这种格式,(把数据库表中的id,作为它的索引值)
<input name="pics[5]" type="file">
<input name="pics[17]" type="file">
<input name="pics[18]" type="file">
会导致上传不起 提示“非法上传文件”。搞我了几个小时,虽然解决了,但不知道原理是什么。