-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
handle all dropped images #2642
Conversation
I've merged the previous PR #2473 into this one. |
come on, image is a must. but not work on windows for now. frustrated. |
@edl7878 is this PR not working on Windows? |
@daiyam I've checked this pr after merging the current master. It works fine in macOS, but doesn't work in Windows.
Could you fix this and merge master into this pr? |
@Rokt33r is it from a browser or Explorer? |
@daiyam a browser! |
@Rokt33r I've found the issue. It's in the function |
@Rokt33r your issue should be fixed but you should test it to make sure 😉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add tests for the behaviour you want to fix? e.g. for a url containing a query
@daiyam Could you add test cases for url with query? |
@daiyam Awesome! I think I could review this on the next Monday. Please wait a little bit more. |
@daiyam Ohno... This still does not work well in Linux.
It seems file extensions are gone somewhere. And I checked the |
@Rokt33r what were you doing? Because the log is normal if there were no images in the note. |
@daiyam I dragged and dropped an image from browser in Ubuntu Linux. Then, nothing was pasted and the only thing I got is that logs.... |
@Rokt33r I found an issue with Firefox In the following screenshot, the first "HTML" is from Firefox and the second is from Chromium. |
@Rokt33r I've tested on Ubuntu and it should be fine. |
Awesome! I'll deploy this tomorrow! |
Description
The change allows to drop an image directly from the browser.
It also handles all the images dropped (from a browser or from a file explorer).
Issue fixed
Type of changes
Checklist: