Skip to main content
1-Visitor
August 7, 2018
Question

Browse desktop using button for file upload

  • August 7, 2018
  • 1 reply
  • 1166 views

Hi,

I am using file upload widget which has inbuilt browse option for uploading and using csv parser for  csv file upload right now.

But I am not able to customize that widget. So I have put  button named browse and a textbox to display url. Here how can I browse the desktop using a button and choose a file? 

 

Please provide some guidance.

Thanks,

V Shalini.

1 reply

18-Opal
August 29, 2018

Hi--

 

You can use the ACL function file_selector() to show a modal file selector dialog. The return value is the path selected by the user, or an empty string if the user cancels. If you are setting this up with a button in a XUI dialog, you can invoke this using Acl.eval() in your JS script code.

 

--Clay