Horje
aws download image getting this issue Fatal error reading PNG image file: Not a PNG file Code Example
aws download image getting this issue Fatal error reading PNG image file: Not a PNG file
 Add this  function  ob_end_clean(); after set header 
=> Example  : 
 $get_document = 'assets/documents/'.$id.'/' . $file;
 if (Storage::disk('s3')->exists($get_document)) {
    $file_name  = $file;
    $type = $type;
    $headers = [
      'Content-Type' => 'application/'.$type,            
      'Content-Disposition' => 'attachment; filename="'. $file_name .'"',
    ];
    ob_end_clean();
    return \Response::make(Storage::disk('s3')->get($get_document), 200, $headers);
}




Whatever

Related
lumen with specific version Code Example lumen with specific version Code Example
Dismissing alert in bootstrap Code Example Dismissing alert in bootstrap Code Example
shubham Code Example shubham Code Example
lockphish Code Example lockphish Code Example
shubham sakharkar Code Example shubham sakharkar Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9