Uploading image with HTTPS enabled fails #1435

Closed
opened 2026-02-05 00:53:49 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @Zlkva on GitHub (Nov 2, 2019).

Describe the bug
When I have HTTPS/Cloudflare proxying on, images fail to upload and auto-save functionality fails (and leaves notifications).

Turning off cloudflare HTTPS rewrites/proxying resolves the issue.

(Note: I am using Cloudflares free SSL in Flexible mode)

Steps To Reproduce
Steps to reproduce the behavior:

  1. Ensure HTTPS is enabled via Cloudflare DNS
  2. Navigate to page
  3. Edit page
  4. Attempt to upload image to server.
  5. Image upload fails.

Expected behavior
Image should upload while HTTPS is enabled.

Screenshots
https://i.imgur.com/WynIsJD.png
https://i.imgur.com/RacXJXl.png

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): BookStack v0.27.5
  • PHP Version: 7.1.33
  • Hosting Method (Nginx/Apache/Docker): Apache

Additional context
Add any other context about the problem here.

Originally created by @Zlkva on GitHub (Nov 2, 2019). **Describe the bug** When I have HTTPS/Cloudflare proxying on, images fail to upload and auto-save functionality fails (and leaves notifications). Turning off cloudflare HTTPS rewrites/proxying resolves the issue. (Note: I am using Cloudflares free SSL in Flexible mode) **Steps To Reproduce** Steps to reproduce the behavior: 1. Ensure HTTPS is enabled via Cloudflare DNS 2. Navigate to page 3. Edit page 4. Attempt to upload image to server. 5. Image upload fails. **Expected behavior** Image should upload while HTTPS is enabled. **Screenshots** https://i.imgur.com/WynIsJD.png https://i.imgur.com/RacXJXl.png **Your Configuration (please complete the following information):** - Exact BookStack Version (Found in settings): BookStack v0.27.5 - PHP Version: 7.1.33 - Hosting Method (Nginx/Apache/Docker): Apache **Additional context** Add any other context about the problem here.
Author
Owner

@Zlkva commented on GitHub (Nov 2, 2019):

I resolved my problem by changing from "Flexible" SSL over Cloudflare to Full SSL using signed certs/keys on my host server.

Images/content load over mixed connections (http/https). I'm hoping I can ask for a solution to this instead, forcing all images/etc to load over https.

Thanks!

@Zlkva commented on GitHub (Nov 2, 2019): I resolved my problem by changing from "Flexible" SSL over Cloudflare to Full SSL using signed certs/keys on my host server. Images/content load over mixed connections (http/https). I'm hoping I can ask for a solution to this instead, forcing all images/etc to load over https. Thanks!
Author
Owner

@Zlkva commented on GitHub (Nov 3, 2019):

And I fixed my issue with mixed content by setting my APP_URL.

@Zlkva commented on GitHub (Nov 3, 2019): _And_ I fixed my issue with mixed content by setting my APP_URL.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1435