File upload dialog should show files from online source

I am working on a feature where user needs to select a photo from a folder on the server instead of local file system.

How can I do this using Webix ? UI should look like its a file upload control, on click, a modal dialog should show photos from a folder on the server (using REST api call to server), user can select one photo and the preview of the selected photo must be shown near the upload control. When user submits form, we should get a unique id of the file.

Please advice on how to implement this feature using Webix. I have File Manager too if it can help.

Hello,

The UI for your use case may look like this: http://webix.com/snippet/7b138aab.