DEV Community 👩‍💻👨‍💻

Discussion on: Reusable File Upload Component With Laravel Livewire and AlpineJS

Collapse
 
hakimd profile image
Hakim DAHOUNE

Hello @mithicher

Thanks for this great example.

I added the x-on:drop to the input to enable drag-drop, but it didn't work. Can you help please?

x-on:drop="handleFiles"

Collapse
 
hakimd profile image
Hakim DAHOUNE

never mind, I just noticed the "sr-only" which is making the input invisible :)
thanks though

Collapse
 
mithicher profile image
Mithicher Baro Author

I will check on this later...meanwhile you can try this tailwindcomponents.com/component/d...