BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

[Feature Request]: Add attachment file upload upon drag/drop or paste within the editors

Open christianhz01 opened this issue 3 years ago • 7 comments

Describe the feature you'd like

That a PDF can be pasted like an image or opened with a preview, without download. -> exactly as it was solved for example in Nextcloud

Describe the benefits this feature would bring to BookStack users

No unnecessary downloads of PDFs that you just want to have a quick look at.

Additional context

No response

christianhz01 avatar Feb 02 '22 12:02 christianhz01

Hi @christianhz01,

That a PDF can be pasted like an image or opened with a preview, without download.

It sounds like there are two requests here, although I'm not 100% sure about what is desired. I'm guessing:

  1. Allow pasting/drag+dropping of files into the page editor, to be uploaded as an attachment.
  2. Allow PDF attachment files to be viewed in-browser without download first.

The second of the above can be achieved, when viewing a page, by clicking the attachment in the sidebar while holding down shift, Or by appending ?open=true to the attachment link. At some point I would like tot make this more obvious in the interface but I've found that coming up with the right user interface has been tricky. I think this may already be covered by #705.

In reference to (1) in the above, is my assumption correct in regards to the description of the feature? If so I could re-purpose this issue to focus on that.

ssddanbrown avatar Feb 02 '22 14:02 ssddanbrown

Hi @ssddanbrown Thanks for the answer. Both would be very useful features :)

christianhz01 avatar Feb 02 '22 14:02 christianhz01

Okay, will therefore re-focus this issue to attachment paste/drag+dropping.

ssddanbrown avatar Feb 03 '22 11:02 ssddanbrown

Hey,

are there any updates on that topic? I would like to import PDF´s from my local mashine therefore drag and drop would be perfect for me. The Request #705 was nice, but i seem to fail uploading my local files.

thanks for your great work! :-)

ghost avatar Apr 06 '23 20:04 ghost

+1 for import pdf

kevinmckeown avatar Jul 17 '23 08:07 kevinmckeown

Very need import pdf!

zznobzz avatar Oct 01 '23 18:10 zznobzz

Is there possible now to upload pdfs ?

AleixoLucas42 avatar Jun 28 '24 18:06 AleixoLucas42