質問編集履歴
1
環境情報の追記、エラーとは無関係な部分の削除を行いました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -20,18 +20,9 @@
|
|
20
20
|
<title>画像アップロード</title>
|
21
21
|
</head>
|
22
22
|
<body>
|
23
|
-
<?php if (isset($msg)): ?>
|
24
|
-
<fieldset>
|
25
|
-
<legend>結果</legend>
|
26
|
-
<span style="color:<?=$msg[0]?>;"><?=$msg[1]?></span>
|
27
|
-
</fieldset>
|
28
|
-
<?php endif; ?>
|
29
23
|
<form enctype="multipart/form-data" method="post" action="up.php">
|
30
|
-
<fieldset>
|
31
|
-
<legend>画像ファイルを選択(GIF, JPEG, PNGのみ対応)</legend>
|
32
24
|
<input type="file" name="upfile" /><br />
|
33
25
|
<input type="submit" value="送信" />
|
34
|
-
</fieldset>
|
35
26
|
</form>
|
36
27
|
</body>
|
37
28
|
</html>
|
@@ -45,6 +36,14 @@
|
|
45
36
|
PHP message: PHP Warning: move_uploaded_file(): Unable to move '/tmp/phpl9WJuU' to './imgtest/image.png' in /usr/share/nginx/html/up.php on line 4"
|
46
37
|
```
|
47
38
|
|
39
|
+
###開発環境
|
40
|
+
|
41
|
+
CentOS : 8.2.2004
|
42
|
+
nginx : 1.14.1
|
43
|
+
PHP : 7.4.11 (cli) ( NTS )
|
44
|
+
PHP-FPM : 7.4.11 (fpm-fcgi)
|
45
|
+
|
46
|
+
|
48
47
|
### 試したこと
|
49
48
|
|
50
49
|
フォルダの権限の変更(/usr/share/nginx/html/imgtest)
|