src/Bynder/Api/Impl/Upload/FileUploader.php
private function saveMediaAsync($data)
    {
        $uri = "api/v4/media/save/";
        if (isset($data['mediaId'])) {
            $uri = sprintf("api/v4/media/" . $data['mediaId'] . "/save/");
            unset($data['mediaId']);
        }
        return $this->requestHandler->sendRequestAsync('POST', $uri, ['form_params' => $data]);
    }
private function saveMediaAsync($data)
    {
        $uri = "api/v4/media/save/";
        if (isset($data['mediaId'])) {
            $uri = sprintf("api/v4/media/" . $data['mediaId'] . "/save/");
            unset($data['mediaId']);
        }
        return $this->requestHandler->sendRequestAsync('POST', $uri, ['form_params' => $data]);
    }
private function saveMediaAsync ( $ data ) { $ uri = "api/v4/media/save/" ; if ( isset ( $ data [ 'mediaId' ] ) ) { $ uri = sprintf ( "api/v4/media/" . $ data [ 'mediaId' ] . "/save/" ) ; unset ( $ data [ 'mediaId' ] ) ; } return $ this -> requestHandler -> sendRequestAsync ( 'POST' , $ uri , [ 'form_params' => $ data ] ) ; }
Saves the file in the Bynder Asset Bank. This can be either a new or existing file, depending on whether or not
the mediaId parameter is passed.

@param array $data Array of relevant file upload data, such as uploadId and brandId.

@return Promise\Promise The information of the uploaded file, including IDs and all final file urls.
@throws Exception
Saves the file in the Bynder Asset Bank . This can be either a new or existing file depending on whether or not the mediaId parameter is passed .