jaredatch/Custom-Metaboxes-and-Fields-for-WordPress — Issue #52: Type "file" opens the media upload popup as a type "image"
Author: smeric
Created: 2011-12-11 22:22:13+00:00
State: open

hi,

this is not realy an issue but in jquery.cmbScripts.js line 60 the type passed as a parameter to the media-upload.php file is "image" so when you click on the library tab you see only images first :

tb_show('', 'media-upload.php?post_id=' + pID + '&type=image&cmb_force_send=true&cmb_send_label=' + buttonLabel + '&cbm_setting=cbm_value&TB_iframe=true');

wouldn't it be more logical to have a type of "file" instead ? that way you have all files in the library and still you may filter by type image, audio...

tb_show('', 'media-upload.php?post_id=' + pID + '&type=file&cmb_force_send=true&cmb_send_label=' + buttonLabel + '&cbm_setting=cbm_value&TB_iframe=true');

thank you.