Skip to Content
한 권으로 끝내는 Node & Express(2판): 모던 웹을 위한 서버 사이드 자바스크립트의 모든 것
book

한 권으로 끝내는 Node & Express(2판): 모던 웹을 위한 서버 사이드 자바스크립트의 모든 것

by 한선용, 이선 브라운
May 2021
Beginner to intermediate
448 pages
9h 47m
Korean
Hanbit Media, Inc.
Content preview from 한 권으로 끝내는 Node & Express(2판): 모던 웹을 위한 서버 사이드 자바스크립트의 모든 것
407
부록
A
폼 처리
A.2
파일 업로드
홈페이지에 사진 콘테스트 페이지로 가는 링크가 없으니 다음과 같이 추가합니다 (
views
/
home
.
handlebars
).
...
<p>Also, please enter our Vacation Photo Contest using either:</p>
<ul>
<li><a href=”/contest/vacation-photo”>Old-school form submission</a>.</li>
<li><a href=”/contest/vacation-photo-ajax”>Async form submission (recommended)</
a>.</li>
</ul>
{{> weather}}
...
meadowlark
.
js
를 수정하는 부분에 필요한 라우트가 빠져 있습니다. 다음과 같이 사진 콘테스
트 폼으로 가는
get
라우트, 서버에서 처리를 마친 후 감사 인사 페이지로 가는 라우트를 추가
해야 합니다. 감사 인사 페이지에 해당하는 핸들러 이름이 너무 길어서
Process
는 뺐습니다.
깃허브 예제에서는 폼 라우트에서도 필드와 파일을 콘솔에 기록하는데, 핸들러에서도 하고 있
으니 라우트에서는 뺐습니다. 깃허브 예제와는 조금 다르니 참고하세요.
const multiparty = require(‘multiparty’)
...
app.get(‘/contest/vacation-photo’, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

한 권으로 끝내는 Node & Express: 웹사이트 구축을 위한 서버 사이드 자바스크립트

한 권으로 끝내는 Node & Express: 웹사이트 구축을 위한 서버 사이드 자바스크립트

한성용, 이선 브라운

Publisher Resources

ISBN: 9791162244227