| 
...
 | 
...
 | 
@@ -27,7 +27,7 @@ class Attachment extends Base { | 
| 
 | 
 | 
         if(file_exists($filename)){
 | 
| 
 | 
 | 
             $file = new \SplFileInfo($filename);
 | 
| 
 | 
 | 
             if(in_array($file->getExtension(),['jpg','jpeg','png','gif','mp4','mp3','pdf','txt','doc','docx','xls','xlsx','ppt','pptx','eml'])){
 | 
| 
 | 
 | 
                 app()->header("Content-Type",$file->getMTime());
 | 
| 
 | 
 | 
                 app()->header("Content-Type",$file->getType());
 | 
| 
 | 
 | 
                 app()->header("Content-Disposition","inline; filename=".$file->getFilename());
 | 
| 
 | 
 | 
                 app()->header("Content-Transfer-Encoding","binary");
 | 
| 
 | 
 | 
                 app()->header("Accept-Ranges","bytes");
 | 
...
 | 
...
 | 
 |