Commit fbc1f3c2 by Jansa Jose

Merge branch 'master' into 'dev_production'

image upload in webservice See merge request !19
parents d62815fd 5d698b8d
......@@ -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