file upload using Vapor
<p>I can't find any example of handling file upload, especially how to save into some specific folder.</p>

<p>Here is the code, addVideo is a HTTP POST multipart/form-data:</p>

<pre><code>videos.post("addVideo") { req in

    // need to save req.multipart["video"] into /data/videos/

    return try JSON(node: ["status": 0, "message": "success"])
}
</code></pre>