EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: atiwat on October 12, 2016, 12:34:51 AM



Title: Need to help - Filebox
Post by: atiwat on October 12, 2016, 12:34:51 AM
Hi professional,

I need to show type of file box (.xls) only. please help me

thank you.


Title: Re: Need to help - Filebox
Post by: stworthy on October 12, 2016, 08:38:38 PM
You can call 'getValue' method to get your selected file name. The code below shows how to get the extension of your selected file.
Code:
var name = $('#fb').filebox('getValue');
var ss = name.split('.');
var ext = ss.pop();
console.log(ext);


Title: Re: Need to help - Filebox
Post by: mzeddd on October 16, 2016, 01:12:34 PM
I think the question was about having only XLS files visible in the dialog.