Comments (28)
Not yet. trzsz.js
will support the feature.
It should be an api of TrzszFilter
and TrzszAddon
. I may name it uploadFiles
.
The client of trzsz.js
can listen on the drag event, and call trzsz.js
api to upload the dragging files.
See also:
https://www.geeksforgeeks.org/drag-and-drop-files-in-electronjs/
https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API/File_drag_and_drop
from trzsz.js.
I'm looking forward to this feature being developed
from trzsz.js.
v0.4.0
supports dragging files and directories to upload.
from trzsz.js.
Drag and drop uploads work fine, the display is just a little unfriendly.
from trzsz.js.
I've try to hide the trz
. Sounds like it's not working.
Lines 130 to 139 in 7f43fe4
Could you try to figure out why?
from trzsz.js.
What's the type of the server output? Blob, or Uint8Array, or ArrayBuffer?
from trzsz.js.
Line 233 in 7f43fe4
Although the complete command is sent here, "processServerOutput" may receive split characters.
from trzsz.js.
Maybe. Could you print some log in here?
Lines 130 to 139 in 7f43fe4
Figure out the server output, then we can skip it.
from trzsz.js.
from trzsz.js.
I've tested it many times. Sometimes it's a different result.
from trzsz.js.
Is it Uint8Array? It may has some characters unprintable. Could you print the char codes too?
from trzsz.js.
I've tested it many times. Sometimes it's a different result.
Collect all the cases, we can do it. We need to print each ascii code.
from trzsz.js.
from trzsz.js.
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.
from trzsz.js.
Could you print the printable log and char codes together? It would be easy to analyze. Thanks very much.
from trzsz.js.
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
from trzsz.js.
I think "trz" can be displayed in "xterm", but it needs the correct line break.
from trzsz.js.
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?
from trzsz.js.
from trzsz.js.
That's it. Thanks.
Looks like I have to learn more about vt100.
from trzsz.js.
@wenbingzhang If just remove these code, What will it show?
Lines 130 to 139 in 7f43fe4
from trzsz.js.
from trzsz.js.
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?
from trzsz.js.
from trzsz.js.
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.
from trzsz.js.
Should be solved with v0.4.1
.
from trzsz.js.
It has been updated and tested, and it works fine.
from trzsz.js.
Thanks for your feedback.
from trzsz.js.
Related Issues (11)
- [feature request] Support rz/sz HOT 1
- 不支持safari 14 版本 HOT 2
- chooseSaveDirectory is not a function HOT 3
- node12 is not supported? HOT 3
- try/catch is invalid HOT 5
- Add trzsz support to ttyd HOT 1
- 大佬问个问题 The browser doesn't support the File System Access API HOT 40
- In browser mode, seems download(tsz) may not work HOT 26
- fs.exists deprecated, should use fs.stat() or fs.access() instead. HOT 2
- Make timeout configurable HOT 27
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trzsz.js.