Page 1 of 1

Show a dialog box to user select an image file

Posted: March 27th, 2021, 8:35 am
by parthsaha
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

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

Posted: March 29th, 2021, 5:00 am
by Gregory Martin
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.