rootslab/formaline — Issue #28: formaline crashes after 4th or 5th upload
Author: cjroebuck
Created: 2011-11-04 18:20:18+00:00
State: open

This is our code, after uploading 5 or so files formaline just seems to crash and dumps us to the prompt.

req.form = form = new formaline config
req.form.on 'loadend', (json, res) ->
return next new Error 'No files' unless json.files.length
return next new Error 'Incomplete files' if json.incomplete.length
file = json.files[0].value[0]
res.send helper.formatResponse 'upload', [{name:file.name, url:'/public/img/uploaded/' + file.path}]
form.parse req, res