2015-11-12 29 views

回答

1

當您在表單上設置enctype屬性時,瀏覽器在請求(see this SO question for more details)中將其作爲content-type發送。在Express中,您可以從請求對象訪問content-type標題名稱,如下所示:req.headers['content-type']