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

Commit

Permalink
Fixing "file_put_contents(): Exclusive locks are not supported for th…
Browse files Browse the repository at this point in the history
…is stream" exception in docker on nfs file systems
  • Loading branch information
Robert Kummer committed Jan 24, 2018
1 parent a02522e commit bf88ff0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Jobs/UpdateLocalFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ public function handle()
}

$path = $localFile->getLocalStoragePath();
if ($filesystem->put($path, $content)) {

$fh = fopen($this->file->getRealPath(), 'rb');
if ($filesystem->put($path, $fh)) {
$localFile->path = $path;
$localFile->save();
}
Expand Down

0 comments on commit bf88ff0

Please sign in to comment.