Commit 61c5d29f by Jansa Jose

change permison

parent dd7b3607
...@@ -5991,9 +5991,9 @@ print_r(date('H:i',$ms));exit();*/ ...@@ -5991,9 +5991,9 @@ print_r(date('H:i',$ms));exit();*/
//echo "s"; //echo "s";
if (!is_dir("./../assets/uploads/medicalrecord/booking".$data['booking_id'])) { if (!is_dir("./../assets/uploads/medicalrecord/booking".$data['booking_id'])) {
//$oldmask = umask(0); //$oldmask = umask(0);
mkdir("./../assets/uploads/medicalrecord/booking".$data['booking_id'], 0777,true); mkdir("./../assets/uploads/medicalrecord/booking".$data['booking_id'], 777,true);
//umask($oldmask); //umask($oldmask);
chmod("./../assets/uploads/medicalrecord/booking".$data['booking_id'], 0777); //chmod("./../assets/uploads/medicalrecord/booking".$data['booking_id'], 0777);
} }
//print_r($_FILES['photo']); //print_r($_FILES['photo']);
...@@ -6013,7 +6013,6 @@ print_r(date('H:i',$ms));exit();*/ ...@@ -6013,7 +6013,6 @@ print_r(date('H:i',$ms));exit();*/
if($this->upload->do_upload('photo')) if($this->upload->do_upload('photo'))
{ {
$imagedata= $this->upload->data(); $imagedata= $this->upload->data();
write_file('./../assets/uploads/medicalrecord/booking'.$data['booking_id'], $imagedata['file_name'], 'r+');
$new[$i] = 'assets/uploads/medicalrecord/booking'.$data['booking_id'].'/'.$imagedata['file_name']; $new[$i] = 'assets/uploads/medicalrecord/booking'.$data['booking_id'].'/'.$imagedata['file_name'];
} }
else else
......
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