mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
22 lines
520 B
PHP
22 lines
520 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Helpers\Helper;
|
|
use App\Models\Actionlog;
|
|
use Response;
|
|
|
|
class ActionlogController extends Controller
|
|
{
|
|
|
|
public function displaySig($filename)
|
|
{
|
|
$this->authorize('view', \App\Models\Asset::class);
|
|
$file = config('app.private_uploads').'/signatures/'.$filename;
|
|
$filetype = Helper::checkUploadIsImage($file);
|
|
$contents = file_get_contents($file);
|
|
|
|
return Response::make($contents)->header('Content-Type', $filetype);
|
|
}
|
|
}
|