Show a dialog box to user select an image file

Discussions about creating CAPI applications to run on Android devices
Post Reply
parthsaha
Posts: 15
Joined: March 8th, 2021, 11:16 am

Show a dialog box to user select an image file

Post by parthsaha » March 27th, 2021, 8:35 am

Dear All,

Greetings!

I want to show a dialog box to user to select image or any file to upload to the server.

Is there a way, I can do that.

Thanks in advance for any help!

Thanks.

Parth

Gregory Martin
Posts: 1534
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Show a dialog box to user select an image file

Post by Gregory Martin » March 29th, 2021, 5:00 am

This will likely be quite easy in CSPro 8.0, but with the current version have to write some logic to do this. You could use the dirlist function to get a list of files and then show that list to the user (using the list.show function or using a dynamic value set). Once the user makes a selection, you would use the syncfile function to upload the file.

Post Reply