choi

upload picture and video

No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
This diff is collapsed. Click to expand it.
...@@ -10,6 +10,10 @@ ...@@ -10,6 +10,10 @@
10 <link href="https://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css" /> 10 <link href="https://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css" />
11 <!-- Core theme CSS (includes Bootstrap)--> 11 <!-- Core theme CSS (includes Bootstrap)-->
12 <link href="/css/styles.css?after" rel="stylesheet" /> 12 <link href="/css/styles.css?after" rel="stylesheet" />
13 +
14 + <meta charset="UTF-8">
15 + <meta name="viewport" content="width=device-width, initial-scale=1.0">
16 + <meta http-equiv="X-UA-Compatible" content="ie=edge">
13 </head> 17 </head>
14 <body> 18 <body>
15 <!-- Navigation--> 19 <!-- Navigation-->
...@@ -54,7 +58,7 @@ ...@@ -54,7 +58,7 @@
54 <% 58 <%
55 } 59 }
56 %> 60 %>
57 - <form action="/board/write/<%=addr%>" method="post"> 61 + <form action="/board/write/<%=addr%>" method="post" enctype="multipart/form-data">
58 62
59 <table border="1"> 63 <table border="1">
60 <tr> 64 <tr>
...@@ -68,12 +72,29 @@ ...@@ -68,12 +72,29 @@
68 <tr> 72 <tr>
69 <td>내용</td> 73 <td>내용</td>
70 <td><textarea name="content" id="content" cols="30" rows="10" required></textarea></td> 74 <td><textarea name="content" id="content" cols="30" rows="10" required></textarea></td>
75 + </tr>
76 + <tr>
77 + <td>
78 + 사진 업로드
79 + </td>
80 + <td>
81 + <input type='file' name='uploadpic' id='uploadpic' multiple='multiple' />
82 + </td>
83 + </tr>
84 + <tr>
85 + <td>
86 + 동영상 업로드
87 + </td>
88 + <td>
89 + <input type='file' name='uploadpic' id='uploadpic' multiple='multiple' />
90 + </td>
71 </tr> 91 </tr>
72 <tr> 92 <tr>
73 <td colspan="2"> 93 <td colspan="2">
74 <button type="submit">글쓰기</button> 94 <button type="submit">글쓰기</button>
75 </td> 95 </td>
76 </tr> 96 </tr>
97 +
77 </table> 98 </table>
78 </form> 99 </form>
79 </div> 100 </div>
......