jqueryファイルボックスinputfileイベント検証ファイルタイプを変更
/**
*
* @param {Object} filepath
* @param {Object} allowtype : [ "jpg", "gif","png","Jpeg"]
*/
function checkfiletype(filepath,allowtype){
//
var thisfiletype = filepath.substring(filepath.lastIndexOf(".")+1,filepath.length).toLowerCase();
if ($.inArray(thisfiletype,allowtype) == -1){
return false;
}else {
return true;
}
}