uploadify 3.1 버 전 매개 변수 사용 상세 설명

사용:
    바 인 딩 된 인터페이스 요소 < input id = 'gallery' type = 'file' / > $('\ # gallery'). uploadify ({매개 변 수 를 설정 하고 매개 변 수 는 다음});
설정 한 속성:
id: jQuery(this).attr('id'),//   input ID
      langFile: 'http://www.static-xxx.nu/uploader/uploadifyLang_en.js',//      ,          
      swf: 'http://www.static-xxx.nu/uploader/uploadify.swf',//[    ]swf   
      uploader: '/uploadify/galleri.php',//[    ]       url
      auto:false,//       ,      
      buttonText:'V?lj Filer',//       
      height: 30,//        
      width: 120,
            formData: null,
      buttonCursor: 'pointer',//    hover Cursor   
      cancelImage: 'http://www.static-xxx.nu/uploadify-cancel.png',//[    ]       
      checkExisting:'/uploader/uploadify-check-existing.php',//         ,   url,  1/0
      debug: true,//debug   / ,      debug    
      fileObjName:'file',
      fileSizeLimit : 0,//       ,      ,0    。1MB:1*1024*1024
      fileTypeDesc: 'Bild JPG',//            ,             
      fileTypeExts: '*.jpg',//         ,                
      method: 'post',//        :post/get
      multi: true,//         
      queueID: 'fileQueue',//           id,       div   
      queueSizeLimit : 999,//            
      progressData : 'all', // 'percentage''speed''all'//              :all-    +   ,percentage-   ,speed-    
      removeCompleted : true,//        ,          
      removeTimeout: 3,
      requeueErrors : true,
      postData: {},//      ,     
      preventCaching : true,
      transparent: true,
      successTimeout : 30,//    
      timeoutuploadLimit:999//          

설 정 된 이벤트:
onDialogClose : function(swfuploadifyQueue) {//             
  if( swfuploadifyQueue.filesErrored > 0 ){
  alert( '       '
  +swfuploadifyQueue.filesErrored
  +'       n'
  +'    :'
  +swfuploadifyQueue.errorMsg
  +'n      :'
  +swfuploadifyQueue.filesSelected
  +'n           :'
  +swfuploadifyQueue.filesQueued
  +'n         :'
  +swfuploadifyQueue.queueLength);
  }
}
onDialogOpen : function() {//             
  alert( 'Open!');
}
onSelect : function(file) {//             
  alert( 'id: ' + file.id
  + ' -   : ' + file.index
  + ' -    : ' + file.name
  + ' -     : ' + file.size
  + ' -   : ' + file.type
  + ' -     : ' + file.creationdate
  + ' -     : ' + file.modificationdate
  + ' -     : ' + file.filestatus);
}
onSelectError : function(file,errorCode,errorMsg) {//            
  alert( 'id: ' + file.id
  + ' -   : ' + file.index
  + ' -    : ' + file.name
  + ' -     : ' + file.size
  + ' -   : ' + file.type
  + ' -     : ' + file.creationdate
  + ' -     : ' + file.modificationdate
  + ' -     : ' + file.filestatus
  + ' -     : ' + errorCode
  + ' -     : ' + errorMsg);
}
onQueueComplete : function(stats) {//                  
  alert( '        : ' + stats.successful_uploads
  + ' -         : ' + stats.upload_errors
  + ' -         : ' + stats.upload_cancelled
  + ' -       ' + stats.queue_errors);
}
onUploadComplete : function(file,swfuploadifyQueue) {//                 
  alert( 'id: ' + file.id
  + ' -   : ' + file.index
  + ' -    : ' + file.name
  + ' -     : ' + file.size
  + ' -   : ' + file.type
  + ' -     : ' + file.creationdate
  + ' -     : ' + file.modificationdate
  + ' -     : ' + file.filestatus
  + ' -       : ' + swfuploadifyQueue.filesErrored
  + ' -     : ' + swfuploadifyQueue.errorMsg
  + ' -          : ' + swfuploadifyQueue.filesSelected
  + ' -         : ' + swfuploadifyQueue.filesQueued
  + ' -     : ' + swfuploadifyQueue.queueLength);
}
onUploadError : function(file,errorCode,errorMsg,errorString,swfuploadifyQueue) {//         (          )
  alert( 'id: ' + file.id
  + ' -   : ' + file.index
  + ' -    : ' + file.name
  + ' -     : ' + file.size
  + ' -   : ' + file.type
  + ' -     : ' + file.creationdate
  + ' -     : ' + file.modificationdate
  + ' -     : ' + file.filestatus
  + ' -     : ' + errorCode
  + ' -     : ' + errorMsg
  + ' -       : ' + errorString
  + ' -       : ' + swfuploadifyQueue.filesErrored
  + ' -     : ' + swfuploadifyQueue.errorMsg
  + ' -          : ' + swfuploadifyQueue.filesSelected
  + ' -         : ' + swfuploadifyQueue.filesQueued
  + ' -     : ' + swfuploadifyQueue.queueLength);
}
onUploadProgress : function(file,fileBytesLoaded,fileTotalBytes,queueBytesLoaded,swfuploadifyQueueUploadSize) {//           
alert( 'id: ' + file.id
  + ' -   : ' + file.index
  + ' -    : ' + file.name
  + ' -     : ' + file.size
  + ' -   : ' + file.type
  + ' -     : ' + file.creationdate
  + ' -     : ' + file.modificationdate
  + ' -     : ' + file.filestatus
  + ' -        : ' + fileBytesLoaded
  + ' -       : ' + fileTotalBytes
  + ' -      : ' + queueBytesLoaded
  + ' -     : ' + swfuploadifyQueueUploadSize);
}
onUploadStart: function(file) {//       (        )
  alert( 'id: ' + file.id
  + ' -   : ' + file.index
  + ' -    : ' + file.name
  + ' -     : ' + file.size
  + ' -   : ' + file.type
  + ' -     : ' + file.creationdate
  + ' -     : ' + file.modificationdate
  + ' -     : ' + file.filestatus );
}
onUploadSuccess : function(file,data,response) {//       (        )
  alert( 'id: ' + file.id
  + ' -   : ' + file.index
  + ' -    : ' + file.name
  + ' -     : ' + file.size
  + ' -   : ' + file.type
  + ' -     : ' + file.creationdate
  + ' -     : ' + file.modificationdate
  + ' -     : ' + file.filestatus
  + ' -       : ' + data
  + ' -       : ' + response);
} 

 jsp:
<a href="javascript:$('#uploadify').uploadify('cancel')">    </a>
<a href="javascript:$('#uploadify').uploadify('upload')">  </a>

좋은 웹페이지 즐겨찾기