EasyUI Forum
May 10, 2024, 07:08:30 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: best fix for c:/fakefile  (Read 4926 times)
devnull
Sr. Member
****
Posts: 431


View Profile
« 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];     
          }
        })
Logged

-- Licensed User --
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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.
Logged
devnull
Sr. Member
****
Posts: 431


View Profile
« Reply #2 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 ?
Logged

-- Licensed User --
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!