Copy paste pictures upload instead of linking #1687

Open
opened 2026-02-05 01:37:34 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @Joneees on GitHub (Apr 28, 2020).

Describe the bug
When copy pasting for example from SharePoint, it doesn't upload the picture but links to it instead. This prevents others who don't have access to there from seeing it at all.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Go to https://colorlib.com/wp/photo-gallery-website-templates/
  2. Copy some of the page including at least one picture
  3. Paste it into a bookstack page
  4. Inspect element, for example in new chromium edge and check where the images are pointing to

Expected behavior
Images are supposed to be uploaded to BookStack and referenced from there

Screenshots
image

Your Configuration (please complete the following information):

  • v0.29.1
  • PHP Version: Using ubuntu script to install, whatever comes with that.
  • Hosting Method: Local ubuntu vm
Originally created by @Joneees on GitHub (Apr 28, 2020). **Describe the bug** When copy pasting for example from SharePoint, it doesn't upload the picture but links to it instead. This prevents others who don't have access to there from seeing it at all. **Steps To Reproduce** Steps to reproduce the behavior: 1. Go to https://colorlib.com/wp/photo-gallery-website-templates/ 2. Copy some of the page including at least one picture 3. Paste it into a bookstack page 4. Inspect element, for example in new chromium edge and check where the images are pointing to **Expected behavior** Images are supposed to be uploaded to BookStack and referenced from there **Screenshots** ![image](https://user-images.githubusercontent.com/22350850/80488971-d8ca6100-8967-11ea-9653-605879522387.png) **Your Configuration (please complete the following information):** - v0.29.1 - PHP Version: Using ubuntu script to install, whatever comes with that. - Hosting Method: Local ubuntu vm
Author
Owner

@Joneees commented on GitHub (Apr 28, 2020):

If you just copy paste the image, it uploads properly. However if the copy contains anything else (one string of text) and the image, it will be referenced instead.

@Joneees commented on GitHub (Apr 28, 2020): If you just copy paste the image, it uploads properly. However if the copy contains anything else (one string of text) and the image, it will be referenced instead.
Author
Owner

@ssddanbrown commented on GitHub (Apr 30, 2020):

Thanks @Joneees for the clear report.

Much related to #449. Pasted content becomes tricky to deal with when it's mixed content. We could maybe just paste in the text. and discard any images to at least prevent such references occurring.

@ssddanbrown commented on GitHub (Apr 30, 2020): Thanks @Joneees for the clear report. Much related to #449. Pasted content becomes tricky to deal with when it's mixed content. We could maybe just paste in the text. and discard any images to at least prevent such references occurring.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1687