teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

一部の編集

2019/11/19 07:34

投稿

Res
Res

スコア184

title CHANGED
File without changes
body CHANGED
@@ -5,10 +5,11 @@
5
5
  # ソースコード
6
6
  form.php
7
7
  ```html
8
- <form action="up.php" method="post" enctype="multipart/form-data">
8
+ <form action="up.php" method="post">
9
9
  <input type="file" name="file">
10
10
  <input type="submit" name="submit" value="送信">
11
11
  </form>
12
+ <!-- enctype="multipart/form-data" の付け忘れ -->
12
13
  ```
13
14
  up.php
14
15
  ```php

2

一部の編集

2019/11/19 07:34

投稿

Res
Res

スコア184

title CHANGED
File without changes
body CHANGED
@@ -5,7 +5,7 @@
5
5
  # ソースコード
6
6
  form.php
7
7
  ```html
8
- <form action="up.php" method="post" enctype="application/x-www-form-urlencoded">
8
+ <form action="up.php" method="post" enctype="multipart/form-data">
9
9
  <input type="file" name="file">
10
10
  <input type="submit" name="submit" value="送信">
11
11
  </form>

1

enctypeの追加

2019/11/17 13:19

投稿

Res
Res

スコア184

title CHANGED
File without changes
body CHANGED
@@ -5,7 +5,7 @@
5
5
  # ソースコード
6
6
  form.php
7
7
  ```html
8
- <form action="up.php" method="post">
8
+ <form action="up.php" method="post" enctype="application/x-www-form-urlencoded">
9
9
  <input type="file" name="file">
10
10
  <input type="submit" name="submit" value="送信">
11
11
  </form>