속성
name: 'syn.uicontrols.$fileclient',
version: '1.0.0',
defaultSetting: {
elementID: null,
dialogTitle: '파일 업로드',
tokenID: '',
repositoryID: '',
dependencyID: '',
fileUpdateCallback: null,
uploadType: 'Single',
uploadUrl: '',
uploadExtensions: '*',
uploadCount: 1,
fileChangeHandler: undefined,
custom1: undefined,
custom2: undefined,
custom3: undefined,
fileManagerServer: '',
dataType: 'string',
belongID: null,
controlText: null,
validators: null,
transactConfig: null,
triggerConfig: null
},
메서드
컨트롤 기능
getFileSetting: function(elID) - 저장소 정보
getItem: function (elID, itemID, callback) - 업로드 파일 정보 조회
getItems: function (elID, dependencyID, callback) - 업로드 파일 목록 정보 조회
updateDependencyID: function (elID, sourceDependencyID, targetDependencyID, callback) - DependencyID 정보 변경
fileDownload: function (elID) - 파일 다운로드
API 기능
httpDownloadFile: function (repositoryID, itemID, fileMD5, tokenID) - http 기반 직접 파일 다운로드
uploadBlob: function (options, callback) - Blob 파일 업로드
uploadBlobUri: function (options, callback) - BlobUri 파일 업로드
uploadDataUri: function (options, callback) - DataUri 파일 업로드