You are here

public function BynderMediaApi::uploadFile in Bynder 7

File

includes/BynderMediaApi.inc, line 224
Manages the Bynder media browser functionality

Class

BynderMediaApi

Code

public function uploadFile($fileInfo) {
  try {
    $result = $this->assetBankManager
      ->uploadFileAsync($fileInfo)
      ->wait();
    return $result;
  } catch (Exception $e) {
    watchdog('bynder', $e
      ->getMessage());
  }
  return false;
}