2012-04-09 6 views
0

PHP에서 SwfUpload 플래시 업 로더로 비디오를 업로드 할 수 없습니다. 이미하지 작업을 다음과 같이 스크립트를 시도 :PHP에서 SwfUpload 플래시 업 로더에서 비디오를 업로드 할 수 없습니다.

$('#swfupload-control').swfupload({ 
    upload_url: "swf/upload-file.php?fname="+ escape($("#cbocateid").val()), 
    file_post_name: 'uploadfile', 
    file_size_limit : "102400", 
    file_types : "*.*", 
    file_types_description : "All Files", 
    file_upload_limit : 5, 
    flash_url : "swf/js/swfupload/swfupload.swf", 
    button_image_url : 'swf/js/swfupload/wdp_buttons_upload_114x29.png', 
    button_width : 114, 
    button_height : 29, 
    button_placeholder : $('#button')[0], 
    debug: false 

이 도와주세요.

콘솔에 오류를 표시하지 않습니다.

erorr. 업로드 이미지는 정상이지만 비디오가 작동하지 않습니다.

+0

어떻게됩니까 : kavoir.com에서 코드의

빠른 미리보기는 최대 업로드 크기를 볼 수 있도록? 브라우저에서 JS 오류 콘솔을보고 오류가 있는지 확인 했습니까? 세부 사항이 더 많이 필요합니다. – halfer

+0

어떤 오류가 발생합니까? – Ghostman

+0

erorr. 업로드 이미지는 괜찮지 만 비디오가 작동하지 않습니다. –

답변

0

최대 업로드 파일 크기와 비교하여 비디오의 크기를 확인하십시오. 그것이 더 크다면 이런 종류의 문제가 생길 것입니다. 당신은 파일을 업로드하려고 할 때

$max_upload = (int)(ini_get('upload_max_filesize')); 
$max_post = (int)(ini_get('post_max_size')); 
$memory_limit = (int)(ini_get('memory_limit')); 
$upload_mb = min($max_upload, $max_post, $memory_limit); 
+0

max_upload = 100 max_post = 8 memory_limit = 128 upload_mb = 8 –

+0

파일이 8MB보다 크면 작동하지 않습니다. 그 숫자를 이해 했습니까? 어떻게 수정합니까? – dmp

+0

어떻게 수정합니까? –

관련 문제