阿贾克斯上载从浏览器的文件到FTP服务器 [英] Ajax upload a file from browser to FTP server

查看:120
本文介绍了阿贾克斯上载从浏览器的文件到FTP服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能使用AJAX uplaod从浏览器的文件到FTP服务器?

Is it possible to uplaod a file from browser to FTP server using ajax?

推荐答案

没有。浏览器没有提供API,允许从JavaScript写的FTP。

No. Browsers provide no APIs that allow writing to FTP from JavaScript.

您可以<一href="https://developer.mozilla.org/en-US/docs/Web/API/XMLHtt$p$pquest/Using_XMLHtt$p$pquest#Submitting_forms_and_uploading_files"相对=nofollow>文件发布到一个HTTP终点,然后使用服务器端code把它推到你的FTP服务器。

You could post the file to an HTTP end point and then use server side code to push it to your FTP server.

这篇关于阿贾克斯上载从浏览器的文件到FTP服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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