Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report]: local_secure option not working #2998

Closed
nixaura opened this issue Oct 21, 2021 · 1 comment
Closed

[Bug Report]: local_secure option not working #2998

nixaura opened this issue Oct 21, 2021 · 1 comment
Labels

Comments

@nixaura
Copy link

nixaura commented Oct 21, 2021

Describe the Bug

I've changed the STORAGE_TYPE from local to local_secure in my .env file; however, images are still being uploaded to the public/uploads/images directory instead of /storage/uploads/images. I've cleared the cache with:

php artisan config:cache
php artisan config:clear
php artisan cache:clear

System Information:

BookStack v21.08.6
Ubuntu 20.04.3 LTS
Apache Server

Steps to Reproduce

  1. Change the STORAGE_TYPE variable in the .env to local_secure
  2. Upload an image and get the image URL path.
  3. Open an incognito browser and attempt to access the image URL path.

Expected Behaviour

Changing the STORAGE_TYPE to local_secure should put new images in the /storage/uploads/images and require authentication to view.

Screenshots or Additional Context

image

image

image

Exact BookStack Version

21.08.6

PHP Version

7.4.3

Hosting Environment

Ubuntu 20.04.3 LTS

@nixaura
Copy link
Author

nixaura commented Oct 21, 2021

I should've read the STORAGE_IMAGE_TYPE comment. I only used the default value that was provided. Changing that to local_secure resolved the issue.

image

Not a bug. Just a user error :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant