What's an HTML-first way (no JS, if possible) to browse existing media files on a server?

I've got a Flask backend with a public_uploads directory holding images. I'd like to be able to scroll through/pick files for a simple blog post editor.

#askfedi #flask #webdev

@brianb You want a web page that allows you to view a server directory contents?

No such thing exists as an HTML element. HTML does not know about the server at all. Literally. It runs entirely in the browser, locally.

@mattwilcox I don't think I asked it well. I was trying to avoid a bunch of JS to do all the work. I used this CSStricks article as a basis for layout and use a one-line fetch request to get the formatted HTML from the server. I plopped the response right into the DOM easily enough.

https://css-tricks.com/adaptive-photo-layout-with-flexbox/

Adaptive Photo Layout with Flexbox | CSS-Tricks

Let’s take a look at a super lightweight way to create a horizontal masonry effect for a set of arbitrarily-sized photos. Throw any set of photos at it, and

CSS-Tricks