码迷,mamicode.com
首页 > Web开发 > 详细

node.js express fs 获取已上传文件数据格式

时间:2014-08-09 18:26:28      阅读:336      评论:0      收藏:0      [点我收藏+]

标签:des   style   blog   color   os   io   文件   数据   

{
    "fieldName": "photo",
    "originalFilename": "1395130808991.jpg",
    "path": "tmpupload/25546-z8u01y.jpg",
    "headers": {
        "content-disposition": "form-data; name=\"photo\"; filename=\"1395130808991.jpg\"",
        "content-type": "image/jpeg"
    },
    "ws": {
        "_writableState": {
            "highWaterMark": 16384,
            "objectMode": false,
            "needDrain": true,
            "ending": true,
            "ended": true,
            "finished": true,
            "decodeStrings": true,
            "defaultEncoding": "utf8",
            "length": 0,
            "writing": false,
            "sync": false,
            "bufferProcessing": false,
            "writecb": null,
            "writelen": 0,
            "buffer": [],
            "errorEmitted": false
        },
        "writable": true,
        "domain": null,
        "_events": {
            "error": [
                null
            ],
            "close": [
                null
            ]
        },
        "_maxListeners": 10,
        "path": "tmpupload/25546-z8u01y.jpg",
        "fd": null,
        "flags": "w",
        "mode": 438,
        "bytesWritten": 1944795,
        "closed": true
    },
    "size": 1944795,
    "name": "1395130808991.jpg",
    "type": "image/jpeg"
}

 

node.js express fs 获取已上传文件数据格式,布布扣,bubuko.com

node.js express fs 获取已上传文件数据格式

标签:des   style   blog   color   os   io   文件   数据   

原文地址:http://www.cnblogs.com/nuoku/p/3901242.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!