I have a custom meta filed with upload file functionality but the problem is I can’t get the fileurl button value when hit “insert into Post” below are my jQuery code
window.send_to_editor = function(html)
{
dlink = jQuery('button.urlfile',html).attr('title');
jQuery('#download_link').val(dlink);
tb_remove();
}
tb_show('', 'media-upload.php?post_id=1&type=image&TB_iframe=true');
return false;
Again. If you are using file upload, it is different than image upload. To get a FILE url, use: $(html).attr(‘href’);
File upload:
Image upload:
try this: