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
| Name | Type | Description | Default | Set? | Get? | Tag? |
| buttonText |
String |
按钮文本 |
|
√ | √ | √ |
| limitType |
String |
文件限制类型。如"*.bmp;*.txt" |
|
√ | √ | √ |
| limitSize |
String |
文件尺寸限制。如"10MB" |
|
√ | √ | √ |
| uploadUrl |
String |
文件上传路径地址 |
|
√ | √ | √ |
| flashUrl |
String |
Flash路径地址 |
|
√ | √ | √ |
| uploadOnSelect |
Boolean |
文件选择后即上传 |
false |
√ | √ | √ |
Methods
| Name | Parameter | Description | Return |
| startUpload() |
|
上传文件 |
|
Events
| Name | EventObject | Description |
| uploadsuccess |
|
上传成功 |
| uploaderror |
|
上传失败 |
| uploadcomplete |
|
上传完成 |