mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-13 17:14:10 -08:00
19 lines
437 B
PHP
19 lines
437 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers;
|
||
|
|
||
|
use App\Helpers\Helper;
|
||
|
use Response;
|
||
|
|
||
|
class ActionlogController extends Controller
|
||
|
{
|
||
|
public function displaySig($filename)
|
||
|
{
|
||
|
|
||
|
$file = config('app.private_uploads') . '/signatures/' . $filename;
|
||
|
$filetype = Helper::checkUploadIsImage($file);
|
||
|
$contents = file_get_contents($file);
|
||
|
return Response::make($contents)->header('Content-Type', $filetype);
|
||
|
}
|
||
|
}
|