FTP in Flash/Flex - sandbox error
I'm trying to embed an FTP client in to a web page using Flash. I'm using FlexFTP, which appears to be designed for AIR. I've modified it to use a FileReference so it can run in the Flash plugin. I only need to connect to one server, and I have an appropriate socket policy server running on that server.
I can connect and log in just fine, but when I try to uploa开发者_开发问答d a file, I get a security sandbock violation (error 2048) saying "cannot load data from 127.0.0.1:38422" thrown from ceatePassiveSocket().
I'm beginning to think that it is not possible to do FTP from Flash because of the need to open a port locally. Is there a way around it, or can I get authoritative confirmation that it is not possible?
You can do it in flash (browser), but you need to create an socket policy/crossdomain.xml, which allows flash to connect on the port , even if its local( testing it inside the browser).The file spec is located here http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html
精彩评论