使用JavaScript通过FTP上传文件(Chrome扩展程序) [英] Upload file via FTP using javascript (Chrome Extension)

查看:902
本文介绍了使用JavaScript通过FTP上传文件(Chrome扩展程序)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个chrome扩展程序,所以它是纯javascript + chrome api.我想通过FTP协议上传文件.

I have a chrome extension, so it's pure javascript + chrome api. I want to upload via FTP protocol a file.

我了解到,香草javascript无法执行FTP请求.但是还有其他方法吗?我在使用Chrome扩展程序,但在在线API中找不到任何ftp内容

I have understood that vanilla javascript can't do FTP request. But is there any other way ? I'm in a Chrome extension but I haven't find any ftp purpoes in the online API

我必须澄清一下,我必须在黑匣子上通过FTP上传文件.我对此没有任何控制权.而且这个黑匣子无法通过Internet访问,只能通过本地网络访问.

And I have to clarify, I have to upload a file via FTP on black box. I don't have any control on it. And this black box is not accessible via Internet, only via local network.

推荐答案

似乎您可以使用

但是套接字api在扩展程序中不可用. 此处是关于此的更多信息

But the socket api doesn't available in extensions. here is more information about it

这篇关于使用JavaScript通过FTP上传文件(Chrome扩展程序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆