mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 01:06:46 +00:00
Some new stuff.
This commit is contained in:
@@ -124,7 +124,12 @@ class AttachmentController extends Controller
|
||||
*/
|
||||
public function preview(Attachment $attachment)
|
||||
{
|
||||
$file = public_path('images/image.png');
|
||||
if($attachment->mime == 'application/pdf') {
|
||||
$file = public_path('images/page_white_acrobat.png');
|
||||
} else {
|
||||
$file = public_path('images/page_green.png');
|
||||
}
|
||||
|
||||
$response = Response::make(File::get($file));
|
||||
$response->header('Content-Type', 'image/png');
|
||||
|
||||
|
Reference in New Issue
Block a user