Skip to content

Commit 073941e

Browse files
committed
changed getpathname to getpath + filename for better compatibility
1 parent 6e98daa commit 073941e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Services/FileMakerConnection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public function uploadToContainerField(FMBaseBuilder $query)
165165
}
166166

167167
// create a stream resource
168-
$stream = fopen($file->getPathname(), 'r');
168+
$stream = fopen($file->getPath().'/'.$file->getFilename(), 'r');
169169

170170
$request = Http::attach('upload', $stream, $filename);
171171
$response = $this->makeRequest('post', $url, [], $request);

0 commit comments

Comments
 (0)