mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
28 lines
721 B
PHP
28 lines
721 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Helpers\Helper;
|
|
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);
|
|
}
|
|
|
|
public function getStoredEula($filename){
|
|
$this->authorize('view', \App\Models\Asset::class);
|
|
$file = config('app.private_uploads').'/eula-pdfs/'.$filename;
|
|
|
|
|
|
return Response::download($file);
|
|
}
|
|
}
|