localhost를 사용하여 이미지를 업로드하려고 시도했지만 즉시 업로드가되었지만 웹 호스팅을 시도 할 때 "_uploads"폴더에 파일이 표시되는 데 5 분 이상 걸렸습니다.서버에 파일 업로드가 완료되었습니다.
누구에게도 동일한 문제가 발생합니까? AV가 스캔 지연을 고려 했습니까?
<?php
$hasError = false;foreach($_FILES as $i=>$file){
if ($file['error']){
$hasError = true;
}
}
if (! $hasError){
$filename = '_uploads/'.$_GET["key"].'_'.$file["name"];
$myFilePath = '_uploads/'.$_GET["key"].'_'.$file["name"];
$dta = file_get_contents($file['tmp_name']);
file_put_contents($myFilePath, $dta);
echo('success');
} else {
echo('Image was not successfully upload.');
}
?>
해결 했습니까? 내가 시도하고 추가로 당신의 문제가 아직도있다 도움을 :) – Andrew