function downloadURL($contentObject, $contentObjectAttribute)
 {
     $contentObjectID = $contentObject->attribute('id');
     $contentObjectAttributeID = $contentObjectAttribute->attribute('id');
     $downloadType = eZBinaryFileHandler::downloadType($contentObject, $contentObjectAttribute);
     $downloadObject = eZBinaryFileHandler::downloadFileObject($contentObject, $contentObjectAttribute);
     $name = '';
     switch ($downloadType) {
         case self::TYPE_FILE:
             $name = $downloadObject->attribute('original_filename');
             break;
         case self::TYPE_MEDIA:
             $name = $downloadObject->attribute('original_filename');
             break;
         default:
             eZDebug::writeWarning("Unknown binary file type '{$downloadType}'", 'eZBinaryFileHandler::downloadURL');
             break;
     }
     $url = "/content/download/{$contentObjectID}/{$contentObjectAttributeID}/{$downloadType}/{$name}";
     return $url;
 }