평가 전에 설명용 이미지로 만들기….

평가 전에 설명용 이미지로 만들기….

파일 저장

예시

POST /upload HTTP/1.1
Host: foo.example
Content-Type: application/pdf
Content-Length: 1234..

# binary pdf file content
POST /test HTTP/1.1
Host: foo.example
Content-Type: multipart/form-data;boundary="boundary"

--boundary
Content-Disposition: form-data; name="field1"

value1
--boundary
Content-Disposition: form-data; name="field2"; filename="example.txt"

value2
--boundary--

POST - HTTP | MDN

Example of multipart/form-data

form.html

<form action="<http://www.foo.com>" method="POST">
  <div>
    <label for="say">What greeting do you want to say?</label>
    <input name="say" id="say" value="Hi" />
  </div>
  <div>
    <label for="to">Who do you want to say it to?</label>
    <input name="to" id="to" value="Mom" />
  </div>
  <div>
    <button type="submit">Send my greetings</button>
  </div>
</form>

Sending form data - Learn web development | MDN

참고