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

@@ -1297,10 +1297,10 @@ function requestMIMETypeChange(db, table, reference, current_mime_type)
function changeMIMEType(db, table, reference, mime_type)
{
// specify url and parameters for mootools AJAx request
var url = 'bs_change_mime_type.php';
var mime_chg_url = 'bs_change_mime_type.php';
var params = { bs_db: db, bs_table: table, bs_reference: reference, bs_new_mime_type: mime_type };
// create AJAX object with above options and execute request
var chgRequest = new Ajax('bs_change_mime_type.php', { method: 'post', data: params, evalScripts: true });
chgRequest.request();
var chgRequest = new Request({ method: 'post', url: mime_chg_url, data: params, evalScripts: true });
chgRequest.send();
}