API

ax5uploader

Kind: global class
Author: tom@axisj.com

ax5uploader.setConfig(_config) ⇒ ax5uploader

Preferences of uploader UI

Kind: static method of ax5uploader

Param Type Default Description
_config Object 클래스 속성값
_config.target Element
_config.form Object
_config.form.action String upload URL
_config.form.fileName String The name key of the upload file
[_config.multiple] Boolean false Whether multiple files. In a browser where fileApi is not supported (eg IE9), it only works with false.
[_config.accept] String "" accept mimeType (http://www.w3schools.com/TAgs/att_input_accept.asp)
[_config.manualUpload] Boolean false Whether to automatically upload when a file is selected.
[_config.progressBox] Boolean true Whether to use progressBox
[_config.progressBoxDirection] String auto ProgressBox display direction
[_config.dropZone] Object
[_config.dropZone.target] Element
[_config.dropZone.onclick] function
[_config.dropZone.ondragover] function
[_config.dropZone.ondragout] function
[_config.dropZone.ondrop] function
[_config.uploadedBox] Object
[_config.uploadedBox.target] Element
[_config.uploadedBox.icon] Element
[_config.uploadedBox.columnKeys] Object
[_config.uploadedBox.columnKeys.name] String
[_config.uploadedBox.columnKeys.type] String
[_config.uploadedBox.columnKeys.size] String
[_config.uploadedBox.columnKeys.uploadedName] String
[_config.uploadedBox.columnKeys.downloadPath] String
[_config.uploadedBox.lang] Object
[_config.uploadedBox.lang.supportedHTML5_emptyListMsg] String
[_config.uploadedBox.lang.emptyListMsg] String
[_config.uploadedBox.onchange] function
[_config.uploadedBox.onclick] function
[_config.validateSelectedFiles] function
[_config.onprogress] function return loaded, total
[_config.onuploaded] function return self
[_config.onuploaderror] function return self, error
[_config.onuploadComplete] function return self

Example


ax5uploader.send() ⇒ ax5uploader

Kind: static method of ax5uploader

ax5uploader.abort() ⇒ ax5uploader

Kind: static method of ax5uploader

ax5uploader.setUploadedFiles(_files) ⇒ ax5uploader

Kind: static method of ax5uploader

Param Type Description
_files Array JSON formatting can all be overridden in columnKeys.

Example

var upload1 = new ax5.ui.uploader();
upload1.setConfig({
 ...
});


$.ajax({
    url: "api/fileListLoad.php",
    success: function (res) {
        // res JSON format
        // [{
        // "name": "barcode-scan-ani.gif",
        // "saveName": "barcode-scan-ani.gif",
        // "type": "file",
        // "fileSize": "3891664",
        // "uploadedPath": "/ax5ui-uploader/test/api/files",
        // "thumbUrl": ""
        // }]
        upload1.setUploadedFiles(res);
    }
});

ax5uploader.clear() ⇒ ax5uploader

clear uploadedFiles

Kind: static method of ax5uploader

ax5uploader.removeFile(_index) ⇒ ax5uploader

Removes the object corresponding to the index passed to the argument from uploadedFiles.

Kind: static method of ax5uploader

Param Type
_index Number

Example

// The actual file is not deleted
upload1.removeFile(fileIndex);

ax5uploader.removeFileAll() ⇒ ax5uploader

Empty uploadedFiles

Kind: static method of ax5uploader
Example


ax5uploader.selectFile() ⇒ Boolean

Kind: static method of ax5uploader

AX5UI Package

'AX5UI' can be used with Bootstrap theme. The development of the distribution of the various UI plug-in. When you click the link to move to AX5UI index page.

Get AXBoot

AXBoot makes it easy to build web applications with Java & HTML5 Repeatable and noise development process are resolved by AXBoot.

Code licensed
MIT
Mantained by
Thomas Jang, Brant and Team AXISJ
Templete design by
Jorwrney Kim
Copyright
Opensource Group AXISJ - www.axisj.com
DNS
DNSEver