Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

File Browser Preview Image error #1744

Open
falkvw opened this issue Feb 7, 2020 · 3 comments
Open

File Browser Preview Image error #1744

falkvw opened this issue Feb 7, 2020 · 3 comments
Labels
api needs more info Further Information Needed

Comments

@falkvw
Copy link

falkvw commented Feb 7, 2020

Bug Report

File Browser Preview Image is not loaded, as is 404. We have installes directus in a folder unter root Domain, so its at www.example.com/drt/. The File Browser preview image tries to load images at www.example.com/api/assets... so it is missing the /drt/ folder in the url.
I have added the full www.example.com/drt/ as project and app url. Image detail pages loads the right image urls including /drt/

Steps to Reproduce

  1. Go to File Browser
  2. See error preview images

Expected Behavior

See image previews in list

Actual Behavior

See image preview error files
screenshot-www seame com-2020-02-07-15-10-13

Other Context & Screenshots

Technical Details

  • Device: [Desktop]
  • OS: [MacOS 10.13.6]
  • Web Server: [Apache 2.4.29]
  • PHP Version: [7.2.0]
  • Database: [10.3.22-MariaDB-1:10.3.22]
  • Directus Release Version: [v8.5.4]
  • Install Method: [cloned master branch]
@benhaynes benhaynes transferred this issue from directus/directus Feb 7, 2020
@rijkvanzanten rijkvanzanten transferred this issue from another repository Feb 7, 2020
@rijkvanzanten rijkvanzanten added the needs more info Further Information Needed label Feb 7, 2020
@rijkvanzanten
Copy link
Member

@falkvw What does your storage configuration for the API look like? Most importantly the root_url key under storage

@falkvw
Copy link
Author

falkvw commented Feb 8, 2020

'root' => 'public/uploads//originals',
// This is the url where all the media will be pointing to
// here is where Directus will assume all assets will be accessed
// Ex: (yourdomain)/uploads/
/originals
'root_url' => '/uploads//originals',
// Same as "root", but for the thumbnails
'thumb_root' => 'public/uploads/
/thumbnails',

Tried to set 'root_url' => '/drt/uploads/_/originals', but did not fix the issue
Preview tries to access via /api/assets/rfywbspyxf4o0oow?key=directus-medium-contain instead of /drt/api/assets/rfywbspyxf4o0oow?key=directus-medium-contain

@falkvw
Copy link
Author

falkvw commented Feb 8, 2020

Image Preview in Element file list is without error and including /drt/: /drt/api/assets/k1217asguyo4sc8o?key=directus-small-crop

screenshot-www seame com-2020-02-08-11-58-56

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api needs more info Further Information Needed
Projects
None yet
Development

No branches or pull requests

2 participants