EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: devnull on October 19, 2017, 08:19:37 PM



Title: best fix for c:/fakefile
Post by: devnull on October 19, 2017, 08:19:37 PM
Is there a 'better' fix for the c:/fakefile issue with chrome ?

Would it be possible to integrate a fix into the filebox object as well as getFiles() method ?

Code:
        $('#xfiles').filebox({
          buttonText: 'Choose File',
          buttonAlign: 'left',
          onChange: function(nv,ov){
            $(this).textbox('textbox')[0].value = nv.replace("C:\\fakepath\\", "");
            var tgt = $(this).next().find('.textbox-value')[0];     
          }
        })


Title: Re: best fix for c:/fakefile
Post by: stworthy on October 19, 2017, 11:43:44 PM
The 'C:\fakepath\' has been removed since version 1.4.5. Instead, the filename displays on the filebox.


Title: Re: best fix for c:/fakefile
Post by: devnull on October 20, 2017, 06:25:24 AM
Because of a lot of extensions and hacks, I am on 1.44 as 1.45 won't work.

What fix did you use to get rid of c:/fakepath ?


Title: Re: best fix for c:/fakefile
Post by: stworthy on October 20, 2017, 08:09:11 AM
If you are using 1.4.4, please download the patch from https://www.jeasyui.com/download/downloads/jquery-easyui-1.4.4-patch.zip.