Skip to content

Uploaded images not shown when no pages have been saved yet #4028

@stebit

Description

@stebit

Describe the Bug

Bookstack does not show any uploaded pictures in the 'Image Select' popup before any page has been saved on the installation, even though the uploaded pictures appear on the filesystem. The uploaded pictures appear after saving and reopening the page.

I installed Bookstack with docker-compose and podman; with bind-mount, volumes and without any storage specified. It has always behaved the same.

When you know this behaviour it is not a big deal, mainly posting this for others who might encounter the same thing.

Steps to Reproduce

  1. Install bookstack (with docker-compose or podman).
  2. Create a new book.
  3. Create a new page, do NOT save.
  4. Upload an image; it will be saved on disk, but not shown on 'Image Selector' popup.

Expected Behaviour

Pictures are shown in image selection popup, even before saving for the first time.

Screenshots or Additional Context

before saving the first page created on the installation
before saving the first page created on the installation

after saving and reopening the page
after saving and reopening the page

Browser Details

No response

Exact BookStack Version

v23.01.1

PHP Version

8.2

Hosting Environment

Debian 11 VPS, docker-compose & podman

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions