2014-09-17 5 views
0

나는 파일을 업로드하는 데 blueimp (https://github.com/blueimp/jQuery-File-Upload)의 플러그인을 사용하고 있습니다.jQuery 파일 업로드 : move_uploaded_file - 오류 3

여러 파일 (예 : 20 장의 사진)을 업로드 할 때 처음 7 개가 제대로 업로드되지만 PHP 오류 (업로드 된 파일의 일부만 업로드 됨)가 발생하면 문제가 있습니다.

이 문제를 피하기 위해이 플러그인으로 구성 할 항목이 있습니까?

$('#upload').fileupload({ 
    // This element will accept file drag/drop uploading 
    dropZone: $('#drop'), 
    maxFileSize: 5000000, 
    acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i, 
    // This function is called when a file is added to the queue; 
    // either via the browse button, or via drag/drop: 
    add: function(e, data) { 

     var tpl = $('<li class="working"><input type="text" value="0" data-width="48" data-height="48"' + 
       ' data-fgColor="#0788a5" data-readOnly="1" data-bgColor="#3e4043" /><p></p><span></span></li>'); 

     // Append the file name and file size 
     tpl.find('p').text(data.files[0].name) 
       .append('<i>' + formatFileSize(data.files[0].size) + '</i>'); 

     // Add the HTML to the UL element 
     data.context = tpl.appendTo(ul); 

     // Initialize the knob plugin 
     tpl.find('input').knob(); 

     // Listen for clicks on the cancel icon 
     tpl.find('span').click(function() { 

      if (tpl.hasClass('working')) { 
       jqXHR.abort(); 
      } 

      tpl.fadeOut(function() { 
       tpl.remove(); 
      }); 

     }); 

     // Automatically upload the file once it is added to the queue 
     var jqXHR = data.submit(); 
    }, 
    progress: function(e, data) { 

     // Calculate the completion percentage of the upload 
     var progress = parseInt(data.loaded/data.total * 100, 10); 

     // Update the hidden input field and trigger a change 
     // so that the jQuery knob plugin knows to update the dial 
     data.context.find('input').val(progress).change(); 

     if (progress == 100) { 
      data.context.removeClass('working'); 
     } 
    }, 
    fail: function(e, data) { 
     // Something has gone wrong! 
     data.context.addClass('error'); 
    } 

}); 

어떤 아이디어 무슨 문제가 될 수 :

내가 그런 플러그인을 설정? 당신의 도움에 대한

감사

답변

1

시도 확인 : 이 upload_max_filesize = 100M post_max_size을 = 100M

나는 해결책을 발견

+0

upload_max_filesize 및 post_max_size는 64M과 같습니다. 테스트를 위해 저는 25 장의 사진 (3M)을 업로드하려고합니다. – bidou88

+0

당신은 wordpress를 사용합니까? – demenvil

0

php.ini 파일에서, 나는에 CGI에 프로토콜 FastCGI를 변경 내 웹 서버 및 작동 ;-)