Tp3.2上传多文件的问题

这种格式,没问题。
<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">
会导致上传不起 提示“非法上传文件”。搞我了几个小时,虽然解决了,但不知道原理是什么。
发布了17 篇原创文章 · 获赞 15 · 访问量 4万+

猜你喜欢

转载自blog.csdn.net/junzi528/article/details/74906585