FlashCS3.0 FileReference 文件操作类的用法详解(1)(2)

时间:2025-04-21

Accept: text/* Content-Type: multipart/form-data; boundary=----------Ij5ae0ae0KM7GI3KM7ei4cH2ei4gL6 User-Agent: Shockwave Flash Host: Content-Length: 421 Connection: Keep-Alive Cache-Control: no-cache ------------Ij5GI3GI3ei4GI3ei4KM7GI3KM7KM7 Content-Disposition: form-data; name=“Filename“ MyFile.jpg ------------Ij5GI3GI3ei4GI3ei4KM7GI3KM7KM7 Content-Disposition: form-data; name=“photo“; filename=“MyFile.jpg“ Content-Type: application/octet-stream FileDataHere ------------Ij5GI3GI3ei4GI3ei4KM7GI3KM7KM7 Content-Disposition: form-data; name=“Upload“ Submit Query ------------Ij5GI3GI3ei4GI3ei4KM7GI3KM7KM7--
如果用户指定参数 “api_sig“、“api_key“ 和 “auth_token“,Flash Player 将发送以下 HTTP POST 请求:
POST /handler.cfm HTTP/1.1 Accept: text/* Content-Type: multipart/form-data; boundary=----------Ij5ae0ae0KM7GI3KM7ei4cH2ei4gL6 User-Agent: Shockwave Flash Host: Content-Length: 421 Connection: Keep-Alive Cache-Control: no-cache ------------Ij5GI3GI3ei4GI3ei4KM7GI3KM7KM7 Content-Disposition: form-data; name=“Filename“ MyFile.jpg ------------Ij5GI3GI3ei4GI3ei4KM7GI3KM7KM7 Content-Disposition: form-data; name=“api_sig“ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ------------Ij5GI3GI3ei4GI3ei4KM7GI3KM7KM7 Content-Disposition: form-data; name=“api_key“ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ------------Ij5GI3GI3ei4GI3ei4KM7GI3KM7KM7 Content-Disposition: form-data; name=“auth_token“ XXXXXXXXXXXXXXXXXXXXXX ------------Ij5GI3GI3ei4GI3ei4KM7GI3KM7KM7 Content-Disposition: form-data; name=“photo“; filename=“MyFile.jpg“ Content-Type: application/octet-stream FileDataHere ------------Ij5GI3GI3ei4GI3ei4KM7GI3KM7KM7 Content-Disposition: form-data; name=“Upload“ Submit Query ------------Ij5GI3GI3ei4GI3ei4KM7GI3KM7KM7--
FileReferenceList 处理文件上载和下载
--------------------------------------------------------------------------------
公共 属性
隐藏继承的公共属性
显示继承的公共属性
属性 定义方
constructor : Object
对类对象或给定对象实例的构造函数的引用。 Object
creationDate : Date
[read-only] 本地磁盘上文件的创建日期。 FileReference
creator : String
[read-only] 文件的 Macintosh 创建者类型。 FileReference
modificationDate : Date
[read-only] 本地磁盘上文件的上一次修改日期。 FileReference
name : String
[read-only] 本地磁盘上的文件的名称。 FileReference
prototype : Object
[static] 对类或函数对象的原型对象的引用。 Object
size : uint
[read-only] 本地磁盘上文件的大小(以字节为单位)。 FileReference
type : String
[read-only] 文件类型。 FileReference
公共 方法
隐藏继承的公共方法
显示继承的公共方法
方法
定义方
FileReference()
创建新的 FileReference 对象。 FileReference
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priorit

…… 此处隐藏:452字,全部文档内容请下载后查看。喜欢就下载吧 ……
FlashCS3.0 FileReference 文件操作类的用法详解(1)(2).doc 将本文的Word文档下载到电脑

精彩图片

热门精选

大家正在看

× 游客快捷下载通道(下载后可以自由复制和排版)

限时特价:7 元/份 原价:20元

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219