mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-25 02:10:39 +00:00
s3 bandwidth usage fix
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
namespace Domain\Settings\Controllers;
|
||||
|
||||
use Illuminate\Http\Response;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Symfony\Component\HttpFoundation\StreamedResponse;
|
||||
use Illuminate\Contracts\Filesystem\FileNotFoundException;
|
||||
|
||||
class GetAppImageController
|
||||
{
|
||||
@@ -12,10 +12,10 @@ class GetAppImageController
|
||||
*/
|
||||
public function __invoke(
|
||||
string $basename
|
||||
): StreamedResponse | FileNotFoundException {
|
||||
): StreamedResponse | Response {
|
||||
// Check if file exist
|
||||
if (! Storage::exists("/system/$basename")) {
|
||||
abort(404);
|
||||
return response('File not found', 404);
|
||||
}
|
||||
|
||||
// Return avatar
|
||||
|
||||
Reference in New Issue
Block a user