Skip to content
Myr

Added multi-part upload support. Closes #155

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent 12bc374 · Browse files · 5 files+34 added−9 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

5 files+34 added−9 removed

  • other:+34 added−9 removed

5 files+34 added−9 removed

modified:examples/upload/views/upload.haml.html+3 added-3 removed
modified:examples/upload/app.js-1 removed
modified:lib/express/core.js+1 added
228 unmodified lines
229 part.pos += chunk.length230 })231 part.addListener('complete', function(){232 file.close()233 request.params = { post: mergeParam(part.name, part, {}) }234 })235 }236 })237 stream.addListener('complete', function(){
71 unmodified lines
modified:lib/express/helpers.js+26 added
modified:lib/express/request.js+4 added-5 removed
65 unmodified lines
66 response.headers = {}67 this.response = response68 this.url = url.parse(this.url)69 this.url.pathname = exports.normalizePath(this.url.pathname)70 this.params = { 71 get: this.url.query ? queryString.parseQuery(this.url.query) : {}, 72 post: {}, 73 path: {}74 }70 this.params = this.params || {}71 this.params.path = {}72 this.params.get = this.url.query ? queryString.parseQuery(this.url.query) : {}73 this.params.post = this.params.post || {}74 this.plugins = $(Express.plugins).map(function(plugin){75 return new plugin.klass(plugin.options) 76 })77 },
186 unmodified lines