Skip to content

Commit

Permalink
ViewerJS added
Browse files Browse the repository at this point in the history
  • Loading branch information
ketan404 committed Apr 5, 2024
1 parent 7066fec commit c1c9b9f
Show file tree
Hide file tree
Showing 23 changed files with 49,920 additions and 126 deletions.
5 changes: 4 additions & 1 deletion app/Http/Controllers/DocumentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -592,9 +592,12 @@ public function downloadFile($doc,$storage_drive){
'Content-Type' => $mime,
'Content-Length' => $size,
'Content-Description' => 'File Transfer',
'Content-Disposition' => "attachment; filename={$file_name}",
//'Content-Disposition' => "attachment; filename={$file_name}",
'Content-Transfer-Encoding' => 'binary',
];
if($mime != 'application/pdf'){
$response['Content-Disposition'] = "attachment; filename={$file_name}";
}

ob_end_clean();

Expand Down
Loading

0 comments on commit c1c9b9f

Please sign in to comment.