Using Drag/Drop in Alpine.js with PDF Embed
Briefly

I thought it might be fun to combine the web's drag and drop support with Adobe's PDF Embed library. Here's what I built.
You'll notice both a drop event and dragover...the element must have both ondragover and ondrop event handler attributes.
Essentially - look for a file (a user could drag and drop multiple) and check the type property to ensure it's a PDF.
I've talked about PDF Embed many times here, but if you've never seen it before, you can take a quick look at the Getting Started guide for a review.
Read at Raymondcamden
[
add
]
[
|
|
]