Skip to content

Commit

Permalink
Revert change to keep supporting Non media entries.
Browse files Browse the repository at this point in the history
  • Loading branch information
blItzkrIg1o1 committed Mar 8, 2015
1 parent eed64ad commit 18f2575
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion api_v3/services/FlavorAssetService.php
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,13 @@ public function getUrlAction($id, $storageId = null, $forceProxy = false)
if (!$securyEntryHelper->isAssetAllowed($assetDb))
throw new KalturaAPIException(KalturaErrors::ASSET_NOT_ALLOWED, $id);

return $assetDb->getServeFlavorUrl($preview);
//files grater then 1.8GB can't be downloaded from cdn.
$flavorSizeKB = $assetDb->getSize();
$useCdn = true;
if ($flavorSizeKB > kConf::get("max_file_size_downloadable_from_cdn_in_KB"))
$useCdn = false;

return $assetDb->getDownloadUrl($useCdn, $forceProxy,$preview);

}

Expand Down

0 comments on commit 18f2575

Please sign in to comment.