-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Does electron enable drag-and-drop uploads #7
Comments
Not yet. It should be an api of The client of See also: https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API/File_drag_and_drop |
I'm looking forward to this feature being developed |
|
I've try to hide the Lines 130 to 139 in 7f43fe4
Could you try to figure out why? |
What's the type of the server output? Blob, or Uint8Array, or ArrayBuffer? |
Line 233 in 7f43fe4
Although the complete command is sent here, "processServerOutput" may receive split characters. |
Maybe. Could you print some log in here? Lines 130 to 139 in 7f43fe4
Figure out the server output, then we can skip it. |
I've tested it many times. Sometimes it's a different result. |
Is it Uint8Array? It may has some characters unprintable. Could you print the char codes too? |
Collect all the cases, we can do it. We need to print each ascii code. |
Lines 130 to 139 in 7f43fe4
If no breakpoint is set, the returned data is the same, but after setting a breakpoint, the automatic upload will be disabled and a file selection dialog will be prompted. |
The reason is: Lines 235 to 245 in 7f43fe4
|
I think "trz" can be displayed in "xterm", but it needs the correct line break. |
But we need to figure out the server output first. Could you print the printable log and ascii codes together? |
That's it. Thanks. |
@wenbingzhang If just remove these code, What will it show? Lines 130 to 139 in 7f43fe4
|
It looks not bad. Type some garbage into the command line without a carriage return, what will it show after dragging files to upload? And If move the cursor to the middle of the garbage, what will it show after dragging files to upload? |
All right. I want to keep the garbage unchanged. Since it doesn't work in some environments ( e.g., yours ), I'm going to remove it. |
Should be solved with |
It has been updated and tested, and it works fine. |
Thanks for your feedback. |
Does electron enable drag-and-drop uploads
The text was updated successfully, but these errors were encountered: