update v1.0.3.5

This commit is contained in:
sujitprasad
2015-12-29 11:05:21 +05:30
parent 828b75f9ec
commit 308be859ae
19 changed files with 828 additions and 115 deletions

View File

@@ -115,9 +115,10 @@ class MailController extends Controller {
// echo $_SERVER['DOCUMENT_ROOT'];
$dir_img_paths = __DIR__;
$dir_img_path = explode('/code', $dir_img_paths);
$filepath = explode('../../../../../public/',$attachment->filePath);
$path = $dir_img_path[0]."/code/public/".$filepath[1];
$filepath = explode('../../../../../../public/',$attachment->filePath);
// dd($filepath);
// $path = $dir_img_path[0]."/public/".$filepath[1];
$path = public_path().'/'.$filepath[1];
// dd($path);
$filesize = filesize($path);
$file_data = file_get_contents($path);