首页 > Web开发 > 详细

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

时间:2014-08-09 18:26:28      阅读:519      评论:0      收藏:0      [点我收藏+]
{
    "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 获取已上传文件数据格式

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!