class.upload.php을 사용하여 사진을 서버에 업로드하고 있습니다.
Array
(
[image_file] => somefile.png
[add_new] => Add image
)
Array
(
)
당신이 두 번째 배열을 볼 수 있듯이이 비어 ($ _FILES : 여기
if(array_key_exists('add_new', $_POST))
{
echo 'add new is in array';
echo '<pre>';
print_r($_POST);
print_r($_FILES);
echo '</pre>';
$handle = new Upload($_FILES['image_file']);
...
}
가에서 print_r의 출력은 다음과 같습니다 PHP 코드에서
<form action="<?="http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];?>" method="post" enctype="multipart/form-data">
<table style="width: 100%; padding-top: 20px;">
<tr>
<td>Image file:</td>
<td><input type="file" name="image_file" /></td>
</tr>
<tr>
<td> </td>
<td align="right"><input type="submit" name="add_new" value="Add image" /><td></td>
</tr>
</table>
</form>
내가 할 : 여기 내 양식입니다), 그래서 이미지는 업로드되지 않습니다. 왜?
- 운영 체제 : 리눅스
- PHP 버전 : 5.2.12
- GD 버전 : 2.0.34
- 지원되는 이미지 형식 : PNG JPG GIF, BMP
- 의 open_basedir :/홈/httpd/vhosts/% site %/httpdocs :/tmp
이상한 http://php.net/manual/en/features.file-upload.php에서. 어떤 PHP 버전입니까? –
@Pekka, 방금 방글라데시를 업데이트했습니다. – Ockonal
파일이 업로드되고 있습니까? 큰 파일의 로딩 시간에서 볼 수 있습니까? –