FlashCS3.0 FileReference 文件操作类的用法详解(1)(2)
时间:2025-04-21
时间: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
上一篇:锤击预制方桩施工方案