Commit 5d698b8d by Jansa Jose

image upload in webservice

parent 14e4ea21
......@@ -1156,6 +1156,7 @@
//print_r($_FILES);exit();
if(isset($_FILES['images']) && !empty($_FILES['images'])){
$files = $_FILES;
$config['file_name'] = 'optionalImages'.date('dmYHis').$_FILES['images']['name'];
$config = set_upload_service('assets/uploads/services');
$this->load->library('upload', $config);
for ($i=0; $i < count($files['images']['name']) ; $i++){
......@@ -1187,6 +1188,7 @@
if(isset($_FILES['videos']) && !empty($_FILES['videos'])){
$files = $_FILES;
$config['file_name'] = 'optionalImages'.date('dmYHis').$_FILES['videos']['name'];
$config = set_upload_service('assets/uploads/services');
$this->load->library('upload', $config);
for ($i=0; $i < count($files['videos']['name']) ; $i++){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment