Fixed bug where MIME type could not be changed for BLOB repository references. Added bs_disp_as_mime_type.php to represent files under different MIME types until a better solution can be found

This commit is contained in:
Raj Kissu Rajandran
2008-10-31 19:20:32 +00:00
parent 32d250a9f8
commit 20a4c0251e
3 changed files with 53 additions and 5 deletions

View File

@@ -181,7 +181,6 @@ EOD;
Last_access_time TIMESTAMP COMMENT 'The last time the BLOB was accessed (read)',
Content_type CHAR(128) COMMENT 'The content type of the BLOB - returned by HTTP GET calls',
Blob_data LONGBLOB COMMENT 'The data of this BLOB'
// load PMA configuration
) ENGINE=PBMS;
EOD;
@@ -700,7 +699,7 @@ function PMA_BS_CreateReferenceLink($bs_reference, $db_name)
// video content
case 'application/x-flash-video':
case 'video/mpeg':
$output .= ' (<a href="#" onclick="popupBSMedia(\'' . PMA_generate_common_url() . '\',\'' . urlencode($bs_reference) . '\', \'' . $content_type . '\', 640, 480)">' . $GLOBALS['strViewVideo'] . '/a>)';
$output .= ' (<a href="#" onclick="popupBSMedia(\'' . PMA_generate_common_url() . '\',\'' . urlencode($bs_reference) . '\', \'' . $content_type . '\', 640, 480)">' . $GLOBALS['strViewVideo'] . '</a>)';
break;
// unsupported content. specify download
default: