在flex 4.6中获取上传文件的路径

时间:2013-09-02 04:26:44

标签: flex flex4.6

当我们使用File Reference浏览adobe flash builder 4.6中的文件时,我们如何获取文件的绝对路径或文件的“本机路径”(我们在Flex / AIR中称之为)?

例如,如果我上传的图片来自:“c:\ upload \ check.jpeg” 我想要完整的路径..作为“c:\ upload \ check.jpeg”。

我在adobe flash builder 4.6中需要这个,实际上我用谷歌搜索它但我得到了一些过时的代码,即在flex 4.3(How do I get the fullname of a file in Adobe AIR?) 这不适用于4.6

如果有人知道,请帮助我,我将非常感谢他们

1 个答案:

答案 0 :(得分:0)

In Flash builder we cannot get the native path due to security concerned Adobe systems does't gave 
option to get the native path in web applications but we can get native path in AIR applications..
After  searching  many hours in Internet finally i came to know about that..