开发者

How can I find out size of a local file using flash

I am trying to create an uploader in flash, To do so I have to find out size of the file before uploading to the server, How can I find out this 开发者_运维百科?


Use FileReference.size.


You would need to have a PHP script that you could call before attempting to load the file the script would return the filesize which you would retrieve with Actionscript

PHP function filesize() http://php.net/manual/en/function.filesize.php

check the URLVariables class http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜