Is it possible to open a file dialog on the client side to view and select files on the server?
I’m new to JavaScript and front-end development, currently working on a basic static HTTP server setup. My goal is to implement a file dialog allowing users to select files located on the server. Specifically, I’d like to enable users to browse files and subfolders within a directory like ‘HTTP://localhost:8080/tests’ from the client side. Is it possible to create such a file dialog? Additionally, I’m serving index.html
as the default file for any directory requests, and I’m using http-server
to run this server. Any guidance on achieving this functionality would be appreciated!
Javascript:Is it possible to open a file dialog on the client side using JavaScript to view and select files on the server?
I’m new to JavaScript and front-end development, currently working on a basic static HTTP server setup. My goal is to implement a file dialog allowing users to select files located on the server. Specifically, I’d like to enable users to browse files and subfolders within a directory like ‘HTTP://localhost:8080/tests’ from the client side. Is it possible to create such a file dialog? Additionally, I’m serving index.html
as the default file for any directory requests, and I’m using http-server
to run this server. Any guidance on achieving this functionality would be appreciated!