Skip to content

Commit febaf15

Browse files
committed
qc edits
1 parent 0c54699 commit febaf15

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

app/Nova/Actions/BulkUploadMediaFiles.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,9 @@ protected function storeFile(UploadedFile|string $file, string $destination, str
210210
$stored = Storage::disk('resources')->put($targetPath, $contents, 'public');
211211
}
212212

213-
// Clean temporary Filepond directory.
214-
$data->deleteDirectory();
213+
// Clean only this temp file. Deleting the whole directory can remove
214+
// sibling files from the same multi-upload batch.
215+
$data->deleteFile();
215216

216217
return $stored ? $targetPath : null;
217218
}

0 commit comments

Comments
 (0)