-
Notifications
You must be signed in to change notification settings - Fork 12
File Upload System [PLAN]
Narmamatov Kadyrbek edited this page Jan 27, 2018
·
6 revisions
Sometimes, a user needs to transfer some files to the container to use them later inside that container.
Temporary Idea:
The user will have an area to drag and drop a file. Also, a button to select files from user's machine.
Upload
button which will upload files and Progress Bar
to track the progress of uploading files. And user needs to specify the path in the container (or select the directory from the directory tree
of a container NOTE: I don't have a clear idea on how to get the file system of a container yet).
- Call Wrap the
scp
command- Pros: Easy to implement, need only UI
- Cons: Lack of feedback from commands
- Use opensource libraries:
- https://github.com/lvklabs/QSsh
- Pros: All is implemented
- Cons: Hard to debug and support someone else code
- Use libssh2 to scp files. Examples:
- https://www.libssh2.org/examples/scp_write.html
- https://www.libssh2.org/examples/sftp_mkdir.html
- Pros: Tray already has libssh2 [for updating
rh
andrhm
in Peers] - Cons: Seems, it is buggy and hard to implement
- Do users need file download system? or only the upload is enough?