使用JSCH中的SFTP上传文件,我想知道如何显示有关上传文件的进度
我的网页有一个按钮可以选择文件,当按钮单击时,它将将文件数据发送到WebServer,然后Web服务器将构建由JSCH构建的SFTP服务,然后将文件发送到远程服务器。要知道如何开发进度栏。当文件发送到Web服务器时,我已经开发了进度栏。当文件发送到远程服务器时,我尝试开发进度栏,但我失败了。 在此处输入图像描述
图片是将文件发送到WebServer的过程。 图2是将文件发送到远程服务器的过程。 在此处输入图像描述
my web page have a button to select the files,when the button clicked,it will send files data to webserver,then webserver will build a SFTP service which is built from JSCH,then the files will be sent to remote server.now I want to know how to develop the progress bar.I have already developed the progress bar when files send to web server.I try to develop the progress bar when files send to remote server but i failed. enter image description here
picture one is the process which sends files to webserver.
picture two is the process which sends files to remote server.
enter image description here
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
//这是将文件发送到远程服务器的代码。
//here is code which sends files to remote server.