Get all the images from a folder in HTML with paginated view

github logo ・1 min read

I have a folder named uploads. An admin uploads a picture in this folder and a user must see all the images with paginated view.

I have read the file using in express but I cannot add it in the HTML.I want to add the images dynamically in HTML. So every time the admin adds a new picture the user must see those images along with the previous ones.

The folder name is uploads and the HTML page is located under views/usernews/addNews.

twitter logo DISCUSS (1)
markdown guide

Any sort of codebase we can look at to see the current set up?

You could use websockets to detect whether the length of local store images / downloaded images is shorter than image length on server if so go fetch new ones.

Classic DEV Post from Jan 14

Who's looking for open source contributors? (Jan 14th edition)

Find something to work on or promote your project here. Please shamelessly pro...

saharajdeep profile image
I am interested in making dynamic web development