We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36f46e1 commit 862e275Copy full SHA for 862e275
1 file changed
src/Http/Middleware/DeleteTemporaryFileUploads.php
@@ -44,7 +44,7 @@ private function deleteAbandonedChunks()
44
$disk
45
->getFilesRecursively($dir = ChunkUploads::baseDirectory())
46
->filter(fn ($path) => str_ends_with($path, '/.meta'))
47
- ->filter(fn ($path) => (int) $disk->get($path) < now()->subHour()->timestamp)
+ ->filter(fn ($path) => (int) $disk->get($path) < now()->subDay()->timestamp)
48
->each(fn ($meta) => $disk->getFilesRecursively(dirname($meta))->each(fn ($path) => $disk->delete($path)));
49
50
$disk->deleteEmptySubfolders($dir);
0 commit comments