在express中接收網(wǎng)頁P(yáng)OST過來的圖片data時(shí),chunk拼接后得到的數(shù)據(jù)頭尾總是用一段說明信息(大小314字節(jié))。請問如何取出真正的圖片data內(nèi)容?這段信息有什么用?↓得到的數(shù)據(jù)------WebKitFormBoundary1h2fSYcmIqL12kVj Content-Disposition: form-data; name="uid" rc-upload-1488190554987-16 ------WebKitFormBoundary1h2fSYcmIqL12kVj Content-Disposition: form-data; name="file"; filename="2328bd2a317f33315c60.jpeg" Content-Type: image/jpeg 《這里是需要的圖片數(shù)據(jù)》 ------WebKitFormBoundary1h2fSYcmIqL12kVj--↓chunk拼接代碼
express中的chunk拼接
慕尼黑的夜晚無繁華
2018-10-08 12:21:14