Skip to content

Commit

Permalink
fix(upload): files changed to file
Browse files Browse the repository at this point in the history
  • Loading branch information
slmatthew committed Mar 1, 2020
1 parent c4ee1c9 commit b3ae4a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/Upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 402,7 @@ public function default(string $file, array $serverParams = [], array $saveParam
$server = call('audio.getUploadServer', $serverParams);
if(isset($server['response'])) {
$url = $server['response']['upload_url'];
$result = $this->upload($url, $files, 'file');
$result = $this->upload($url, $file, 'file');
if(isset($result['server'])) {
$saveParams['server'] = $result['server'];
$saveParams['audio'] = $result['audio'];
Expand Down

0 comments on commit b3ae4a0

Please sign in to comment.