如何在flex3和actionscript 3中获取上传文件的完整合格路径
比如说,用户通过 AIR 应用程序创建了一个 xml 文件,并且该文件已保存在其计算机的某个位置。如果用户在该应用程序中第二次输入,则应显示该 XML 文件的内容而不提示他。应用程序应静默读取文件并显示内容。
在这种情况下,我认为当用户保存该文件时,整个文件位置将保存在 cookie 中。如果用户在该应用程序中第二次输入,则可以从 cookie 中获取文件路径。不会提示用户。
这是以下代码段:
var _refFile:FileReference = new FileReference();
var newXMLStr:String = "this is a problem";
_refFile.save(newXMLStr,"abc.xml");
如何获取已保存文件的完整限定路径?
可以实施吗?如果是这样,请帮助我。我在这个问题上坚持了很长时间。如果不可能,请提供任何替代的合适解决方案。
say, user created a xml file by an AIR application and this file has been saved in certain location of his machine. If user enters second time in that application, the content of that XML file, should be displayed without prompting him. application should read file silently and display the content.
In this scenario, i thought that when user will save that file, the entire file location will be saved in cookie. If user enters second time in that application, the file path will be available from cookie. user will not be prompted.
This is the following code segment:
var _refFile:FileReference = new FileReference();
var newXMLStr:String = "this is a problem";
_refFile.save(newXMLStr,"abc.xml");
How can I get that full qualified path of saved file ?
is it possible to implement? if so, please please help me out. I stuck to this problem for long days. If it is not possible then please provide any alternative suitable solutions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不要使用 FileReference,而是使用 File:
Instead of using FileReference, use File: