Skip to content

Add support for multiple images in a story #41

Description

@brucehart

Add support for multiple images in a story.

Create an images table that contains id, path and optional description.
Create story-images table that links story ids to image ids.
Write a SQL script to populate the images and story-images tables with the existing images defined in table stories.

When submitting a story, allow multiple images to be uploaded. Pasting a second image will put it below the first image. Images will have a small x icon in the upper right corner to remove the image from being submitted. Upon submission, images will be posted into R2 as before. Entries will be places in the images table and the story-images table. Check to verify that images are not identical before uploading multiple versions of the same image. Set the description of the image in table images to the title of the story.

When showing a story, if the story has multiple images, then small white arrow will be overlaid on the image to switch between images. An arrow on the right will toggle the image forward and an arrow on the back will toggle back through the set.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions