mini.FileUpload

文件上传控件(flash实现)。

Extend

mini.ButtonEdit

Usage

<input id="fileupload1" class="mini-fileupload" name="Fdata" limitType="*.txt" 
    flashUrl="swfupload/swfupload.swf"
    uploadUrl="upload.aspx"
    onuploadsuccess="onUploadSuccess"
    />

Screenshots

Examples

FileUpload

Properties

NameTypeDescriptionDefault Set? Get? Tag?
buttonText String 按钮文本
limitType String 文件限制类型。如"*.bmp;*.txt"
limitSize String 文件尺寸限制。如"10MB"
uploadUrl String 文件上传路径地址
flashUrl String Flash路径地址
uploadOnSelect Boolean 文件选择后即上传 false

Methods

NameParameterDescriptionReturn
startUpload() 上传文件
setPostParam ( Object ) 设置post参数对象。如:fileupload.setPostParam({a:1, b: true});

Events

NameEventObjectDescription
fileselect 文件选择时激发
uploadsuccess 上传成功
uploaderror
{
    sender: Object,
    file: Object,  
    code: String,     
    message: String
}
上传失败
uploadcomplete 上传完成