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