Skip to content

media not restored from db when accessing images directly #8065

@markus2810

Description

@markus2810

Preconditions

  1. Setup media files to be stored in a Database
  2. Press Synchronize and wait
  3. Check if media db storage is working by uploading a file from wysiwyg editor e.g. home.jpg and add it to a page

Steps to reproduce

  1. Delete the file pub/media/wysiwyg/home.jpg
  2. File is not displayed on the page anymore (verified that file exists in database
  3. domain.com/pub/media/wysiwyg/home.jpg is returning 404

Expected result

  1. File is displayed correctly. Downloaded from database.

Actual result

When I go over content->edit page->insert image. The file is loaded from the db and placed under ub/media/wysiwyg/home.jpg on the file system. After that, the direct access works again. I would expect the same load from db mechanism when the file is access directly using the url.

Am I missing something? Is this known issue?

magento version is 2.1.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions