2013-06-14 14 views
1

나는이 주제에 대한 많은 게시물을 이미 읽었지만 아무도 저에게 맞는 대답이 없었습니다.uploadifive 파일을 선택하면 아무 일도 일어나지 않습니다.

uploadifive를 사용하여 이미지를 업로드하고 있습니다. 파일을 선택하고 open을 누르면 아무 일도 발생하지 않습니다. 내 콘솔에서 오류가 발생하지 않습니다. 또는 onError을 uploadifive에서 사용하면 나에게도 아무런 도움이되지 않습니다.

수 : 1, 선택 : 1 교체 : 0, 오류 다음 onSelect 날이 제공 0, 대기 : 1

onUpload 경고 나 업로드 한 파일이 있음. 그래서 내가 파일을 선택하는 것 같아요,하지만 그냥 업로드되지 않습니다. uploadScript도 내 콘솔/네트워크에 나타나지 않으므로 해당 부분도 실행되지 않습니다.

더 이상한 부분은 내 웹 사이트의 다른 부분에서 uploadifive를 사용했기 때문에 잘 작동합니다. 그러나 코드를 다른 파트에 복사하면 작동하지 않습니다.

내가 놓친 것이 있습니까? 아니면 뭔가 잘못하고 있습니까?

편집 : 내 코드가

$('#mediafile_upload').uploadifive({ 
'uploadScript'   : '/mediafiles/uploadimage', //waar hij heen gaat 
'buttonText'   : '+ Toevoegen', 
'width'     : '140', 
'height'    : '100', 
'dnd'     : true, 
'multi'     : true, 
'removeCompleted'  : true, 
'queueID'    : false, 

'onUpload'  : function(filesToUpload) { 
    alert(filesToUpload + ' files will be uploaded.'); 
}, 
'onAddQueueItem' : function(file) { 
    console.log('The file ' + file.name + ' was added to the queue!'); 
}, 
'onCancel'  : function() { 
    console.log('The file ' + file.name + ' was cancelled!'); 
}, 
'onCheck'  : function(file, exists) { 
    if (exists) { 
     console.log('The file ' + file.name + ' exists on the server.'); 
    } 
},     
'onClearQueue' : function(queue) { 
    queue.css('border', '2px solid #F00'); 
}, 
'onDestroy' : function() { 
    console.log('Oh noes! you destroyed UploadiFive!'); 
},   
'onDrop'  : function(file, fileDropCount) { 
    console.log(fileDropCount + ' files were dropped onto the queue.'); 
},    
'onError'  : function(errorType) { 
    console.log('The error was: ' + errorType); 
},    
'onInit'  : function() { 
    console.log('Add files to the queue to start uploading.'); 
},    
'onProgress' : function(file, e) { 
    console.log('onprogress file: ' + file); 
    console.log('onprogress e: ' + e); 
}, 
'onQueueComplete' : function(uploads) { 
    console.log(uploads.successful + ' files were uploaded successfully.'); 
},  
'onSelect' : function(queue) { 
    console.log(queue.queued + ' files were added to the queue.'); 
},  
'onUpload'  : function(filesToUpload) { 
    console.log(filesToUpload + ' files will be uploaded.'); 
},  
'onUploadComplete' : function(file, data) { 
    console.log('The file ' + file.name + ' uploaded successfully.'); 
}, 
'onUploadFile' : function(file) { 
    console.log('The file ' + file.name + ' is being uploaded.'); 
}   

}); 

이 내 콘솔의 말씀이다 (내가 uploadifive은 어떤 것들 화재를 볼 수있는 모든 하나 하나의 함수에 넣어 한 한하지 않음) : screenshot console

+0

코드의 관련 부분을 게시해야합니다. – shyam

+0

감사합니다. 편집을 보았지만 선택 방법을 알지 못해 직접 개선 사항을 추가했습니다. 감사합니다. – Femke

+0

다음 단계를 수행 할 수 있습니까? '네트워크'탭으로 전환하고 페이지를 새로 고침 한 다음 문서를 업로드하려고하면 'POST'가 있으면 거기에 '/ mediafiles/uploadimage' 요청이 표시됩니다. 이 요청에 포함 된 상태 코드. –

답변

0

나는 내 자신의 질문에 대답했다. 내가 어떻게 생각하는지 알고 있지만 jquery-uploadifive.js 파일을 사용하지 않고 jquery-uploadify.min.js 파일을 사용하면 작동합니다! 이상한 부분은 내가 unminified 버전에서 일을 변경하지 않은 것이지만 잘 작동합니다. 도움을 주신 모든 분들께 감사드립니다.