• The File Upload and partial refresh problem

    By Thomas Adrian 1 decade ago

     

    Hello
    
     
    
    I have found a rather big limitations with xPages and would like to ask if this is something you will concider adding as new features  in extlib.
    
     
    
     
    
    It is not possible to upload a file using partial refresh. 
    

    this is really enoying. and there is no documentation saying that this should not work. but it does not.

    some people have been doing workaround using iframe to solve this, but that is really complicated to get working and at the same time giving user a pleasant experience.
    

     

    Thanks

    Thomas

     
    
     
    
     
    
     
    
     
    
     
    
     
    
     
    
    • Yes,this is a known issue

      By Philippe Riand 1 decade ago

      It had already been SPRed. It has to do with the XPages core librairie. Fortunately, we know how to fix, by changing the way dojo emits an xhr to the server, using a hidden iframe and a form post.

      More than that, it had been partially implemented in the extlib, within the dialog. You can set a dojo attribute called iframePost, and it temporarily switches dojo xhr.

      You can probably do the same in your partial refresh, before we provide a better fix. Look at Dialog.js in the extlib to see how it set/reset the xhr method.

      • Thank you very much

        By Thomas Adrian 1 decade ago

        thank you