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 3571496 commit 2fd6e3eCopy full SHA for 2fd6e3e
src/Files/TemporaryFile.php
@@ -53,10 +53,8 @@ public function sync(): TemporaryFile
53
public function copyFrom($filePath, string $disk = null): TemporaryFile
54
{
55
if ($filePath instanceof UploadedFile) {
56
- $filePath = $filePath->getRealPath();
57
- }
58
-
59
- if ($disk === null && realpath($filePath) !== false) {
+ $readStream = fopen($filePath->getRealPath(), 'rb');
+ } elseif ($disk === null && realpath($filePath) !== false) {
60
$readStream = fopen($filePath, 'rb');
61
} else {
62
$diskInstance = app('filesystem')->disk($disk);
0 commit comments