Initial commit

This commit is contained in:
2026-05-20 18:25:15 +02:00
commit 95f0b4ff01
288 changed files with 90909 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?php
namespace App\Services;
use Illuminate\Http\UploadedFile;
class TemporaryFileService {
public const int NB_HOURS_FILES_KEPT = 6;
/**
* Upload a file in the temporary path.
*
* @param UploadedFile|null $file
*
* @return string|bool
*/
public function uploadFile(?UploadedFile $file ): string|bool {
if( !$file )
return false;
return $file->store( 'temp', 'public' );
}
}