mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-22 08:56:39 -06:00
Some new stuff.
This commit is contained in:
parent
f4ade470df
commit
3c2952009e
@ -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');
|
||||
|
||||
|
BIN
public/images/page_green.png
Executable file
BIN
public/images/page_green.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 621 B |
BIN
public/images/page_white_acrobat.png
Executable file
BIN
public/images/page_white_acrobat.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 591 B |
Loading…
Reference in New Issue
Block a user