auto expiration after latest upload

This commit is contained in:
Čarodej
2022-02-22 16:41:17 +01:00
parent 6feadfd188
commit f15c81d342
4 changed files with 54 additions and 11 deletions

View File

@@ -46,6 +46,9 @@ class UploadFilesForUploadRequestController
// Set public access url
$file->setUploadRequestPublicUrl($uploadRequest->id);
// Set timestamp for auto filling
cache()->set("auto-filling.$uploadRequest->id", now()->toString());
// Return new uploaded file
return response(new FileResource($file), 201);
} catch (InvalidUserActionException $e) {