[英]Codeigniter multiple image upload with different field names
I tried to upload multiple image form using codeigniter here the view code 我试图在这里使用codeigniter上传多个图像表单的查看代码
echo form_open_multipart('banner/upload');
//name
echo form_input('name');
//image1:
$data= array(
'name'=>'userfile',
'value'=>'$userfile'
);
echo form_upload($data);
//image2:
$data= array(
'name'=>'userfile',
'value'=>'$userfile'
);
echo form_upload($data);
//image3:
$data= array(
'name'=>'userfile',
'value'=>'$userfile'
);
echo form_upload($data);
echo form_submit('upload','upload');
How to get three image file form post and how to validate the image 如何获取三个图像文件的表格以及如何验证图像
aPlease refer to the below link: an additional library for multiple uploads in codeigniter. a请参考以下链接:一个额外的库,用于在codeigniter中进行多次上传。
https://github.com/stvnthomas/CodeIgniter-Multi-Upload https://github.com/stvnthomas/CodeIgniter-Multi-Upload
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.