开发者

Flex: downloading files directly to the disk

Is there a way to download some files directly to the user disk, without browsing? (assuming they give permiss开发者_运维技巧ion of course).

FileReference does this, but does not allow to directly save files to the hard disk (if not through browsing). Is there some way around?


To clarify, for people reading about file downloads in flash, it is possible to save to the local hard drive in Flash Player 10+ (e.g. running from a web browser, as well as in AIR).

More specific information can be found in my answer in this question:
Flex 3 file download - Without URLRequest

To address enzo.rivello's question, saving must be performed in response to a user gesture (click or keypress) and the user must browse and select where the file is saved (i.e. through the file browser window). This is for security reasons, so the user has control over what is accessed on their hard drive.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜