coolaj86 / formaline

formaline is a module for handling form requests ( HTTP POSTs / PUTs ) and for fast parsing of file uploads.
Apache License 2.0
239 stars 16 forks source link

formaline crashes after 4th or 5th upload #28

Closed cjroebuck closed 11 years ago

cjroebuck commented 12 years ago

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
dmmalam commented 12 years ago

+1

coolaj86 commented 12 years ago

You guys still having this problem? What size files? Which browser?

I've been running some curl tests with small files and haven't seen this.

coolaj86 commented 11 years ago

v2.0.0 definitely shouldn't have this problem.