Home >php教程 >php手册 >Thinkphp3.2.x 多图上传几个注意点

Thinkphp3.2.x 多图上传几个注意点

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 11:35:291332browse

多图上传几个注意点
1、<form>enctype="multipart/form-data"><br> <br> 2、<input>name="upload_pic[]" multiple><br> <br> 3、$upload-><b>upload(array($_FILES['upload_pic']))</b>; 或 $upload-><b>upload($_FILES)</b>; 否则会出现“非法上传对象”<br> <br> 4、上传配置 $config=array(<b>'saveName'   =>    array('uniqid','')</b>); 否则会引起重名覆盖</form>注意点比较多,希望可以帮到一些人

AD:真正免费,域名+虚机+企业邮箱=0元

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn