Skip to content

Commit

Permalink
Fix set stream for asset model (pimcore#10946)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhgtlc authored Dec 9, 2021
1 parent 3088cec commit 7d39906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,7 @@ public function setStream($stream)
$isRewindable = @rewind($this->stream);

if (!$isRewindable) {
$tempFile = $this->getTemporaryFile();
$tempFile = $this->getLocalFileFromStream($this->stream);
$dest = fopen($tempFile, 'rb', false, File::getContext());
$this->stream = $dest;
}
Expand Down

0 comments on commit 7d39906

Please sign in to comment.