ShizukuIchi / pdf-editor

Offline PDF editor. Add images, signatures, text to PDF in your browser. 🚀
https://pdf-editor.now.sh
MIT License
1.56k stars 309 forks source link

feat: support drag file #3

Closed realdennis closed 4 years ago

realdennis commented 4 years ago

We don't really like click button and choose file... ~so just porting from an awesome magic code and removing the duplocated file validation process which onUploadPDF will do.~

Update onUploadPDF to accept drag file.

vercel[bot] commented 4 years ago

This pull request is being automatically deployed with Vercel (learn more). To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/shizukuichi/pdf-editor/9wvxqlowm ✅ Preview: https://pdf-editor-git-fork-realdennis-drag-file.shizukuichi.now.sh

ShizukuIchi commented 4 years ago

Thank you my bro