My Java application is using jetty running an embedded server, the idea being my software can then be controlled by a browser from a phone/ipad with the server running on PC/Mac ecetera.
I want the user to be able to browse folders on the server from webpage within their browser, not on their client so I was thinking that webdav might be the answer, but how do I even get started with this. All I want them to be able to do is view a browser tree of folders on the server and pick a folder, this folder is then stored in a Form text field and submitted to the server. That is all I need it to do.
So currently you can use file input type to allow users to browse for files on their computer, but I need the same functionality but for browsing files on the server.
<input type="file" name="img">
I realize this is not out of the box behaviour but I have seen it implemented before so how is it done ?
It seems the server would have to provide the file structure, I could try and create this in my backend but hopefully there is something that already done this. Then it has to be rendered on the front-end I assume there is already something for rendering a file structure ?
I found this question Server Side File Browsing which asks essentially the same question, however it is very old and I believe outdated.