Skip to content

Commit

Permalink
Merge pull request #1 from vitalybaev/fix-volume-port-for-uploading
Browse files Browse the repository at this point in the history
Use volume port instead volume public port when upload
  • Loading branch information
tystuyfzand authored May 23, 2018
2 parents 94e5304 + 73402cc commit dac9b96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SeaweedFS.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit dac9b96

Please sign in to comment.