나는 이러한 파일 형식 허용과 upload.php로 파일을 가지고 :BLOB 파일 유형이란 무엇입니까?
$allowedExtensions = array("mp3","mp4","jpg","jpeg","gif","png");
이 제대로 업로드 만 업로드 할 때 파일 (청크 크기가 5메가바이트로 설정) 다음은 내가 연장하지 않는 한 작동이 중지 5메가바이트보다 큰 수행
는$allowedExtensions = array("mp3","mp4","jpg","jpeg","gif","png","blob");
사람은 BLOB이 무엇인지 나를 설명 할 수 : - BLOB 내 배열 (즉, 내가 문제가 무엇인지 방법은 자바 스크립트 콘솔은 upload.php로부터 응답으로이 오류를 반환)? 어떤 종류의 업로드 PART/CHUNK가 서버에 저장되어 있습니까? allowedExtensions
에 다른 놀라움이 있습니까?
내 upload.php는 Plupload.com의 파일입니다 : https://github.com/downloads/moxiecode/plupload/plupload_1_5_4.zip (압축 해제,/examples/및 upload.php 열기). 난 단지 이것을 추가하여 연장 :
foreach($_FILES as $file){
if($file['tmp_name'] > ''){
if(!in_array(end(explode(".", strtolower($file['name']))), $allowedExtensions)){
die($file['name'].' is not an allowed file type!');
}
}
}
http://en.wikipedia.org/wiki/Binary_large_object – j08691
'allowedExtensions'이 어떻게 사용되는지 알지 못하면 말하기가 어렵습니다 –
@ExplosionPills 잠깐 기다려주세요 ... 링크를 게시합니다. – Atadj