Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.

Commit bf88ff0

Browse files
author
Robert Kummer
committed
Fixing "file_put_contents(): Exclusive locks are not supported for this stream" exception in docker on nfs file systems
1 parent a02522e commit bf88ff0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/Jobs/UpdateLocalFile.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ public function handle()
7979
}
8080

8181
$path = $localFile->getLocalStoragePath();
82-
if ($filesystem->put($path, $content)) {
82+
83+
$fh = fopen($this->file->getRealPath(), 'rb');
84+
if ($filesystem->put($path, $fh)) {
8385
$localFile->path = $path;
8486
$localFile->save();
8587
}

0 commit comments

Comments
 (0)