lmarkus / Kraken_Example_Shopping_Cart

An end-to-end example of a shopping cart built with Kraken
92 stars 47 forks source link

how to set app.use express.bodyparse in krakenjs #15

Closed firstsko closed 10 years ago

firstsko commented 10 years ago

i want't to use to set upload ,where set this conf in krakenjs ?

app.use(express.bodyParser({ keepExtensions: true, uploadDir: __dirname + '/tmp', limit: '2mb' }));

is it in app.json?

{ "port": ["OPENSHIFT_NODEJS_PORT", "VCAP_APP_PORT", "PORT", 8001],

"databaseConfig": {
    "host": "localhost",
    "database": "ucrm"
},

"bcrypt": {
    "difficulty": 8
},

"express" : {
    "trust proxy" : true,
    "bodyParser" : {
        "keepExtension":true,
        "limit": "1kb"
    }
}

}

it seems less effective ....

lmarkus commented 10 years ago

Hi, these examples have been deprecated. Please take a look at the new ones in the krakenjs repo :)