{"id":38374,"date":"2024-11-01T17:18:00","date_gmt":"2024-11-01T17:18:00","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=38374"},"modified":"2024-11-26T06:44:29","modified_gmt":"2024-11-26T06:44:29","slug":"express-%ea%b0%9c%eb%b0%9c-%ea%b0%95%ec%a2%8c-%ed%8c%8c%ec%9d%bc-%ec%a0%80%ec%9e%a5-%eb%b0%8f-%ea%b2%bd%eb%a1%9c-%ea%b4%80%eb%a6%ac","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/38374\/","title":{"rendered":"Express \uac1c\ubc1c \uac15\uc88c, \ud30c\uc77c \uc800\uc7a5 \ubc0f \uacbd\ub85c \uad00\ub9ac"},"content":{"rendered":"<p><body><\/p>\n<p>\uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 Express \ud658\uacbd\uc5d0\uc11c \ud30c\uc77c\uc744 \uc800\uc7a5\ud558\uace0 \uad00\ub9ac\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \ud604\ub300 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \ud30c\uc77c \uc5c5\ub85c\ub4dc\uc640 \uac19\uc740 \uae30\ub2a5\uc740 \ub9e4\uc6b0 \uc911\uc694\ud558\uba70, Express.js\ub294 \uc774\ub97c \uac04\ud3b8\ud558\uac8c \uad6c\ud604\ud560 \uc218 \uc788\ub294 \uc5ec\ub7ec \uac00\uc9c0 \ubc29\ubc95\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 <strong>Multer<\/strong>\ub77c\ub294 \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud30c\uc77c \uc5c5\ub85c\ub4dc\ub97c \ucc98\ub9ac\ud558\uace0, <strong>Path<\/strong> \ubaa8\ub4c8\uc744 \ud1b5\ud574 \ud30c\uc77c \uacbd\ub85c\ub97c \uad00\ub9ac\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \ubc30\uc6b0\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>1. Express.js\ub780?<\/h2>\n<p>Express.js\ub294 Node.js\ub97c \uc704\ud55c \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \uac04\ub2e8\ud558\uace0 \uc548\uc815\uc801\uc778 API\ub97c \uc81c\uacf5\ud558\uc5ec \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ubc0f API\ub97c \uac1c\ubc1c\ud558\uae30 \uc704\ud55c \ucd5c\uc801\uc758 \uc120\ud0dd\uc785\ub2c8\ub2e4. \ube44\uc2b7\ud55c \ud504\ub808\uc784\uc6cc\ud06c\uc640 \ube44\uad50\ud588\uc744 \ub54c, Express\ub294 \uc801\uc740 \uc124\uc815\uc73c\ub85c\ub3c4 \uac15\ub825\ud558\uace0 \uc720\uc5f0\ud55c \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ub9cc\ub4e4 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc90d\ub2c8\ub2e4.<\/p>\n<h2>2. \ud504\ub85c\uc81d\ud2b8 \ud658\uacbd \uc124\uc815<\/h2>\n<p>\uc774 \uac15\uc88c\ub97c \uc2dc\uc791\ud558\uae30 \uc804\uc5d0 \ud544\uc694\ud55c \ud658\uacbd\uc744 \uc124\uc815\ud558\uaca0\uc2b5\ub2c8\ub2e4. Node.js\uc640 npm(\ub178\ub4dc \ud328\ud0a4\uc9c0 \uad00\ub9ac\uc790)\uc774 \uc124\uce58\ub418\uc5b4 \uc788\uc5b4\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<pre><code>bash\n# \ud504\ub85c\uc81d\ud2b8 \ud3f4\ub354\ub97c \ub9cc\ub4e4\uace0 \uc774\ub3d9\nmkdir express-file-upload\ncd express-file-upload\n\n# npm \ud504\ub85c\uc81d\ud2b8 \ucd08\uae30\ud654\nnpm init -y\n\n# Express\uc640 Multer \uc124\uce58\nnpm install express multer\n<\/code><\/pre>\n<h2>3. Express \uc11c\ubc84 \uc124\uc815<\/h2>\n<p>\uba3c\uc800, Express \uc11c\ubc84\ub97c \uc124\uc815\ud569\ub2c8\ub2e4. <code>server.js<\/code>\ub77c\ub294 \ud30c\uc77c\uc744 \uc0dd\uc131\ud558\uace0 \uc544\ub798\uc758 \ucf54\ub4dc\ub97c \uc791\uc131\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>javascript\nconst express = require('express');\nconst multer = require('multer');\nconst path = require('path');\n\nconst app = express();\nconst PORT = process.env.PORT || 3000;\n\n\/\/ Multer \uc124\uc815\nconst storage = multer.diskStorage({\n    destination: (req, file, cb) =&gt; {\n        cb(null, 'uploads\/'); \/\/ \ud30c\uc77c\uc774 \uc800\uc7a5\ub420 \uacbd\ub85c\n    },\n    filename: (req, file, cb) =&gt; {\n        cb(null, Date.now() + path.extname(file.originalname)); \/\/ \ub0a0\uc9dc + \uc6d0\ub798 \ud30c\uc77c \ud655\uc7a5\uc790\ub85c \ud30c\uc77c \uc774\ub984 \uc124\uc815\n    }\n});\n\nconst upload = multer({ storage: storage });\n\n\/\/ \uc815\uc801 \ud30c\uc77c \uc11c\ube44\uc2a4\napp.use('\/uploads', express.static('uploads'));\n\n\/\/ \ub8e8\ud2b8 \uacbd\ub85c\uc5d0 \ub300\ud55c GET \uc694\uccad \ucc98\ub9ac\napp.get('\/', (req, res) =&gt; {\n    res.send('<h1>\ud30c\uc77c \uc5c5\ub85c\ub4dc\ub97c \ud560 \uc218 \uc788\ub294 \ud398\uc774\uc9c0\uc785\ub2c8\ub2e4.<\/h1>');\n});\n\n\/\/ \ud30c\uc77c \uc5c5\ub85c\ub4dc \ucc98\ub9ac\napp.post('\/upload', upload.single('file'), (req, res) =&gt; {\n    if (req.file) {\n        res.send(`\ud30c\uc77c \uc5c5\ub85c\ub4dc \uc131\uacf5: <a href=\"\/uploads\/${req.file.filename}\">${req.file.filename}<\/a>`);\n    } else {\n        res.status(400).send('\ud30c\uc77c \uc5c5\ub85c\ub4dc \uc2e4\ud328.');\n    }\n});\n\n\/\/ \uc11c\ubc84 \uc2dc\uc791\napp.listen(PORT, () =&gt; {\n    console.log(`\uc11c\ubc84\uac00 http:\/\/localhost:${PORT}\uc5d0\uc11c \uc2e4\ud589\uc911\uc785\ub2c8\ub2e4.`);\n});\n<\/code><\/pre>\n<h3>\ucf54\ub4dc \uc124\uba85<\/h3>\n<ul>\n<li><code>multer.diskStorage<\/code>: \ud30c\uc77c\uc758 \uc800\uc7a5 \uacbd\ub85c\uc640 \ud30c\uc77c \uc774\ub984\uc744 \uc124\uc815\ud569\ub2c8\ub2e4.<\/li>\n<li><code>upload.single('file')<\/code>: \ud3ec\ub9f7\uc774 <code>multipart\/form-data<\/code>\uc778 \uc694\uccad\uc5d0\uc11c \ud30c\uc77c\uc744 \ud558\ub098\ub9cc \ucc98\ub9ac\ud569\ub2c8\ub2e4.<\/li>\n<li><code>express.static<\/code>: \uc9c0\uc815\ud55c \ud3f4\ub354\uc5d0 \uc788\ub294 \ud30c\uc77c\uc744 \uc815\uc801 \ud30c\uc77c\ub85c \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>4. \ud30c\uc77c \uc5c5\ub85c\ub4dc HTML \ud3fc \ub9cc\ub4e4\uae30<\/h2>\n<p>\ud30c\uc77c \uc5c5\ub85c\ub4dc\ub97c \uc704\ud55c \uac04\ub2e8\ud55c HTML \ud3fc\uc744 \ub9cc\ub4e4\uaca0\uc2b5\ub2c8\ub2e4. <code>index.html<\/code> \ud30c\uc77c\uc744 \uc0dd\uc131\ud558\uace0 \uc544\ub798 \ucf54\ub4dc\ub97c \uc791\uc131\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>html\n<!DOCTYPE html>\n\n<html lang=\"ko\">\n<head>\n    <meta charset=\"utf-8\"\/>\n    <meta content=\"width=device-width, initial-scale=1.0\" name=\"viewport\"\/>\n    <title>\ud30c\uc77c \uc5c5\ub85c\ub4dc<\/title>\n<\/head>\n<body>\n    <h1>\ud30c\uc77c \uc5c5\ub85c\ub4dc<\/h1>\n    <form action=\"\/upload\" enctype=\"multipart\/form-data\" method=\"post\">\n        <input name=\"file\" required=\"\" type=\"file\"\/>\n        <button type=\"submit\">\uc5c5\ub85c\ub4dc<\/button>\n    <\/form>\n<\/body>\n<\/html>\n<\/code><\/pre>\n<h3>HTML \ud3fc \uc124\uba85<\/h3>\n<ul>\n<li><code>enctype=\"multipart\/form-data\"<\/code>: \ud30c\uc77c \uc5c5\ub85c\ub4dc\ub97c \uc704\ud55c \uc778\ucf54\ub529 \ud0c0\uc785\uc785\ub2c8\ub2e4.<\/li>\n<li><code>method=\"post\"<\/code>: \ud30c\uc77c \uc804\uc1a1\uc5d0 POST \uba54\uc11c\ub4dc\ub97c \uc0ac\uc6a9\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>5. \uc11c\ubc84 \uc2e4\ud589 \ubc0f \ud30c\uc77c \uc5c5\ub85c\ub4dc \ud14c\uc2a4\ud2b8<\/h2>\n<p>\uc11c\ubc84\ub97c \uc2e4\ud589\ud558\ub824\uba74 \uc544\ub798 \uba85\ub839\uc5b4\ub97c \uc785\ub825\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>bash\nnode server.js\n<\/code><\/pre>\n<p>\uc6f9 \ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c <code>http:\/\/localhost:3000<\/code>\uc5d0 \uc811\uc18d\ud558\uc5ec \ud30c\uc77c \uc5c5\ub85c\ub4dc \ud3fc\uc744 \uc0ac\uc6a9\ud574 \ubcf4\uc138\uc694. \ud30c\uc77c\uc744 \uc120\ud0dd\ud558\uace0 \uc5c5\ub85c\ub4dc \ubc84\ud2bc\uc744 \ud074\ub9ad\ud558\uba74, \ud30c\uc77c\uc774 <code>uploads<\/code> \ud3f4\ub354\uc5d0 \uc800\uc7a5\ub418\uace0 \ud30c\uc77c \ub9c1\ud06c\uac00 \ud45c\uc2dc\ub429\ub2c8\ub2e4.<\/p>\n<h2>6. \uc5c5\ub85c\ub4dc \ud30c\uc77c \uad00\ub9ac<\/h2>\n<p>\uc5c5\ub85c\ub4dc\ud55c \ud30c\uc77c\uc758 \ubaa9\ub85d\uc744 \uad00\ub9ac\ud558\uace0, \uc0ad\uc81c\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574\uc11c\ub3c4 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc544\ub798\ub294 \ud30c\uc77c \ubaa9\ub85d\uc744 \ubc18\ud658\ud558\uace0 \uc0ad\uc81c\ud558\ub294 API\ub97c \uc815\uc758\ud55c \ucf54\ub4dc\ub97c \ucd94\uac00\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>javascript\nconst fs = require('fs');\n\n\/\/ \ud30c\uc77c \ubaa9\ub85d\uc744 \ubc18\ud658\ud558\ub294 \ub77c\uc6b0\ud2b8\napp.get('\/files', (req, res) =&gt; {\n    fs.readdir('uploads', (err, files) =&gt; {\n        if (err) {\n            return res.status(500).send('\ud30c\uc77c\uc744 \uc77d\ub294 \ub370 \ubb38\uc81c\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4.');\n        }\n        const fileList = files.map(file =&gt; `<li><a href=\"\/uploads\/${file}\">${file}<\/a> <a href=\"\/delete\/${file}\">\uc0ad\uc81c<\/a><\/li>`).join('');\n        res.send(`<h1>\uc5c5\ub85c\ub4dc\ub41c \ud30c\uc77c \ubaa9\ub85d<\/h1><ul>${fileList}<\/ul>`);\n    });\n});\n\n\/\/ \ud30c\uc77c \uc0ad\uc81c\ud558\ub294 \ub77c\uc6b0\ud2b8\napp.get('\/delete\/:filename', (req, res) =&gt; {\n    const filename = req.params.filename;\n    fs.unlink(`uploads\/${filename}`, err =&gt; {\n        if (err) {\n            return res.status(500).send('\ud30c\uc77c \uc0ad\uc81c\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4.');\n        }\n        res.redirect('\/files');\n    });\n});\n<\/code><\/pre>\n<h3>\uc5c5\ub85c\ub4dc \ud30c\uc77c \ubaa9\ub85d \ud655\uc778\ud558\uae30<\/h3>\n<ol>\n<li>\ud30c\uc77c \ubaa9\ub85d\uc744 \ubcf4\ub824\uba74 <code>\/files<\/code> \uacbd\ub85c\uc5d0 \uc811\uadfc\ud558\uc138\uc694.<\/li>\n<li>\uac01 \ud30c\uc77c \uc606\uc758 &#8216;\uc0ad\uc81c&#8217; \ub9c1\ud06c\ub97c \ud074\ub9ad\ud558\uc5ec \ud30c\uc77c\uc744 \uc0ad\uc81c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ol>\n<h2>7. \uc624\ub958 \ucc98\ub9ac<\/h2>\n<p>\ud30c\uc77c \uc5c5\ub85c\ub4dc\ub97c \ucc98\ub9ac\ud560 \ub54c \ub2e4\uc591\ud55c \uc624\ub958\uac00 \ubc1c\uc0dd\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub530\ub77c\uc11c \uc801\uc808\ud55c \uc624\ub958 \ucc98\ub9ac\ub97c \ucd94\uac00\ud558\ub294 \uac83\uc774 \uc911\uc694\ud569\ub2c8\ub2e4. Multer\uc5d0\uc11c \uc9c0\uc6d0\ud558\ub294 \uc624\ub958 \ucc98\ub9ac\ub97c \ud1b5\ud574 \uc62c\ubc14\ub974\uc9c0 \uc54a\uc740 \ud30c\uc77c \ud615\uc2dd\uc774\ub098 \ud30c\uc77c \ud06c\uae30 \ucd08\uacfc \ub4f1\uc758 \uc624\ub958\ub97c \uad00\ub9ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<pre><code>javascript\nconst upload = multer({\n    storage: storage,\n    limits: { fileSize: 5 * 1024 * 1024 }, \/\/ \ucd5c\ub300 5MB\n    fileFilter: (req, file, cb) =&gt; {\n        const filetypes = \/jpeg|jpg|png|gif|pdf\/;\n        const mimetype = filetypes.test(file.mimetype);\n        const extname = filetypes.test(path.extname(file.originalname).toLowerCase());\n        if (mimetype &amp;&amp; extname) {\n            return cb(null, true);\n        }\n        cb('Error: \ud30c\uc77c \ud615\uc2dd\uc774 \uc62c\ubc14\ub974\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.');\n    }\n});\n<\/code><\/pre>\n<h3>\uc624\ub958 \ucc98\ub9ac \uc124\uba85<\/h3>\n<ul>\n<li><code>limits<\/code>: \uc5c5\ub85c\ub4dc\ud560 \ud30c\uc77c\uc758 \ucd5c\ub300 \ud06c\uae30\ub97c \uc81c\ud55c\ud569\ub2c8\ub2e4.<\/li>\n<li><code>fileFilter<\/code>: \uc5c5\ub85c\ub4dc\ud560 \uc218 \uc788\ub294 \ud30c\uc77c \ud615\uc2dd\uc744 \uc81c\ud55c\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>8. \uc815\ub9ac<\/h2>\n<p>\uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 Express.js\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud30c\uc77c\uc744 \uc5c5\ub85c\ub4dc\ud558\uace0 \uad00\ub9ac\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uc558\uc2b5\ub2c8\ub2e4. Multer \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \ud65c\uc6a9\ud558\uc5ec \ud30c\uc77c \uc5c5\ub85c\ub4dc \uae30\ub2a5\uc744 \uc27d\uac8c \uad6c\ud604\ud560 \uc218 \uc788\uc73c\uba70, Path \ubaa8\ub4c8\uc744 \ud1b5\ud574 \ud30c\uc77c \uacbd\ub85c\ub97c \uc548\uc804\ud558\uac8c \uad00\ub9ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub610\ud55c, \uc5c5\ub85c\ub4dc\ud55c \ud30c\uc77c\uc758 \ubaa9\ub85d\uc744 \ubcf4\uc5ec\uc8fc\uace0 \uc0ad\uc81c\ud558\ub294 \uae30\ub2a5\ub3c4 \uad6c\ud604\ud558\uc600\uc2b5\ub2c8\ub2e4. \uc774\ub7ec\ud55c \uae30\ucd08\uc801\uc778 \ud30c\uc77c \uad00\ub9ac \uae30\ub2a5\ub4e4\uc740 \ub2e4\uc591\ud55c \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \ud544\uc218\uc801\uc774\ubbc0\ub85c, \uc5ec\ub7ec\ubd84\uc758 \ud504\ub85c\uc81d\ud2b8\uc5d0 \uc27d\uac8c \uc801\uc6a9\ud560 \uc218 \uc788\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<p>\uc774 \uac15\uc88c\ub97c \ud1b5\ud574 Express.js\ub97c \ud65c\uc6a9\ud55c \ud30c\uc77c \uc5c5\ub85c\ub4dc \ubc0f \uad00\ub9ac\uc5d0 \ub300\ud55c \uc774\ud574\uac00 \uae4a\uc5b4\uc84c\uae30\ub97c \ubc14\ub77c\uba70, \uc9c8\ubb38\uc774\ub098 \ucd94\uac00 \ud559\uc2b5\uc774 \ud544\uc694\ud55c \ubd80\ubd84\uc5d0 \ub300\ud574\uc11c\ub294 \uc790\uc720\ub86d\uac8c \ub313\uae00\ub85c \ub0a8\uaca8\uc8fc\uc138\uc694.<\/p>\n<h2>9. \ubd80\ub85d<\/h2>\n<p>\ub2e4\uc74c\uc740 Express.js\uc640 \uad00\ub828\ub41c \uc720\uc6a9\ud55c \ub9c1\ud06c\ub4e4\uc785\ub2c8\ub2e4:<\/p>\n<ul>\n<li><a href=\"https:\/\/expressjs.com\/\">Express.js \uacf5\uc2dd \ubb38\uc11c<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/expressjs\/multer\">Multer GitHub<\/a><\/li>\n<li><a href=\"https:\/\/nodejs.org\/en\/docs\/\">Node.js \uacf5\uc2dd \ubb38\uc11c<\/a><\/li>\n<\/ul>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 Express \ud658\uacbd\uc5d0\uc11c \ud30c\uc77c\uc744 \uc800\uc7a5\ud558\uace0 \uad00\ub9ac\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \ud604\ub300 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \ud30c\uc77c \uc5c5\ub85c\ub4dc\uc640 \uac19\uc740 \uae30\ub2a5\uc740 \ub9e4\uc6b0 \uc911\uc694\ud558\uba70, Express.js\ub294 \uc774\ub97c \uac04\ud3b8\ud558\uac8c \uad6c\ud604\ud560 \uc218 \uc788\ub294 \uc5ec\ub7ec \uac00\uc9c0 \ubc29\ubc95\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Multer\ub77c\ub294 \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud30c\uc77c \uc5c5\ub85c\ub4dc\ub97c \ucc98\ub9ac\ud558\uace0, Path \ubaa8\ub4c8\uc744 \ud1b5\ud574 \ud30c\uc77c \uacbd\ub85c\ub97c \uad00\ub9ac\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \ubc30\uc6b0\uaca0\uc2b5\ub2c8\ub2e4. 1. Express.js\ub780? Express.js\ub294 Node.js\ub97c \uc704\ud55c \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \uac04\ub2e8\ud558\uace0 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/38374\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;Express \uac1c\ubc1c \uac15\uc88c, \ud30c\uc77c \uc800\uc7a5 \ubc0f \uacbd\ub85c \uad00\ub9ac&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[181],"tags":[],"class_list":["post-38374","post","type-post","status-publish","format-standard","hentry","category-express"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Express \uac1c\ubc1c \uac15\uc88c, \ud30c\uc77c \uc800\uc7a5 \ubc0f \uacbd\ub85c \uad00\ub9ac - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/38374\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Express \uac1c\ubc1c \uac15\uc88c, \ud30c\uc77c \uc800\uc7a5 \ubc0f \uacbd\ub85c \uad00\ub9ac - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 Express \ud658\uacbd\uc5d0\uc11c \ud30c\uc77c\uc744 \uc800\uc7a5\ud558\uace0 \uad00\ub9ac\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \ud604\ub300 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \ud30c\uc77c \uc5c5\ub85c\ub4dc\uc640 \uac19\uc740 \uae30\ub2a5\uc740 \ub9e4\uc6b0 \uc911\uc694\ud558\uba70, Express.js\ub294 \uc774\ub97c \uac04\ud3b8\ud558\uac8c \uad6c\ud604\ud560 \uc218 \uc788\ub294 \uc5ec\ub7ec \uac00\uc9c0 \ubc29\ubc95\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Multer\ub77c\ub294 \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud30c\uc77c \uc5c5\ub85c\ub4dc\ub97c \ucc98\ub9ac\ud558\uace0, Path \ubaa8\ub4c8\uc744 \ud1b5\ud574 \ud30c\uc77c \uacbd\ub85c\ub97c \uad00\ub9ac\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \ubc30\uc6b0\uaca0\uc2b5\ub2c8\ub2e4. 1. Express.js\ub780? Express.js\ub294 Node.js\ub97c \uc704\ud55c \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \uac04\ub2e8\ud558\uace0 &hellip; \ub354 \ubcf4\uae30 &quot;Express \uac1c\ubc1c \uac15\uc88c, \ud30c\uc77c \uc800\uc7a5 \ubc0f \uacbd\ub85c \uad00\ub9ac&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/38374\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T17:18:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:44:29+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/38374\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38374\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"Express \uac1c\ubc1c \uac15\uc88c, \ud30c\uc77c \uc800\uc7a5 \ubc0f \uacbd\ub85c \uad00\ub9ac\",\"datePublished\":\"2024-11-01T17:18:00+00:00\",\"dateModified\":\"2024-11-26T06:44:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38374\/\"},\"wordCount\":40,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"Express\uc11c\ubc84\uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/38374\/\",\"url\":\"https:\/\/atmokpo.com\/w\/38374\/\",\"name\":\"Express \uac1c\ubc1c \uac15\uc88c, \ud30c\uc77c \uc800\uc7a5 \ubc0f \uacbd\ub85c \uad00\ub9ac - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T17:18:00+00:00\",\"dateModified\":\"2024-11-26T06:44:29+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38374\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/38374\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/38374\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Express \uac1c\ubc1c \uac15\uc88c, \ud30c\uc77c \uc800\uc7a5 \ubc0f \uacbd\ub85c \uad00\ub9ac\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Express \uac1c\ubc1c \uac15\uc88c, \ud30c\uc77c \uc800\uc7a5 \ubc0f \uacbd\ub85c \uad00\ub9ac - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/38374\/","og_locale":"ko_KR","og_type":"article","og_title":"Express \uac1c\ubc1c \uac15\uc88c, \ud30c\uc77c \uc800\uc7a5 \ubc0f \uacbd\ub85c \uad00\ub9ac - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 Express \ud658\uacbd\uc5d0\uc11c \ud30c\uc77c\uc744 \uc800\uc7a5\ud558\uace0 \uad00\ub9ac\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \ud604\ub300 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \ud30c\uc77c \uc5c5\ub85c\ub4dc\uc640 \uac19\uc740 \uae30\ub2a5\uc740 \ub9e4\uc6b0 \uc911\uc694\ud558\uba70, Express.js\ub294 \uc774\ub97c \uac04\ud3b8\ud558\uac8c \uad6c\ud604\ud560 \uc218 \uc788\ub294 \uc5ec\ub7ec \uac00\uc9c0 \ubc29\ubc95\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Multer\ub77c\ub294 \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud30c\uc77c \uc5c5\ub85c\ub4dc\ub97c \ucc98\ub9ac\ud558\uace0, Path \ubaa8\ub4c8\uc744 \ud1b5\ud574 \ud30c\uc77c \uacbd\ub85c\ub97c \uad00\ub9ac\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \ubc30\uc6b0\uaca0\uc2b5\ub2c8\ub2e4. 1. Express.js\ub780? Express.js\ub294 Node.js\ub97c \uc704\ud55c \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \uac04\ub2e8\ud558\uace0 &hellip; \ub354 \ubcf4\uae30 \"Express \uac1c\ubc1c \uac15\uc88c, \ud30c\uc77c \uc800\uc7a5 \ubc0f \uacbd\ub85c \uad00\ub9ac\"","og_url":"https:\/\/atmokpo.com\/w\/38374\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T17:18:00+00:00","article_modified_time":"2024-11-26T06:44:29+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"2\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/38374\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/38374\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"Express \uac1c\ubc1c \uac15\uc88c, \ud30c\uc77c \uc800\uc7a5 \ubc0f \uacbd\ub85c \uad00\ub9ac","datePublished":"2024-11-01T17:18:00+00:00","dateModified":"2024-11-26T06:44:29+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/38374\/"},"wordCount":40,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["Express\uc11c\ubc84\uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/38374\/","url":"https:\/\/atmokpo.com\/w\/38374\/","name":"Express \uac1c\ubc1c \uac15\uc88c, \ud30c\uc77c \uc800\uc7a5 \ubc0f \uacbd\ub85c \uad00\ub9ac - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T17:18:00+00:00","dateModified":"2024-11-26T06:44:29+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/38374\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/38374\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/38374\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"Express \uac1c\ubc1c \uac15\uc88c, \ud30c\uc77c \uc800\uc7a5 \ubc0f \uacbd\ub85c \uad00\ub9ac"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38374","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=38374"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38374\/revisions"}],"predecessor-version":[{"id":38375,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38374\/revisions\/38375"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=38374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=38374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=38374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}