diff --git a/src/SeaweedFS.php b/src/SeaweedFS.php index 5fcf43b..bc9008c 100644 --- a/src/SeaweedFS.php +++ b/src/SeaweedFS.php @@ -131,7 +131,7 @@ public function upload($data, $filename = 'file.txt', $file = null) { throw new SeaweedFSException('File must contain a url and fid'); } - $res = $this->client->post($this->buildVolumeUrl($file->publicUrl, $file->fid), [ + $res = $this->client->post($this->buildVolumeUrl($file->url, $file->fid), [ 'multipart' => [ [ 'name' => 'file',