Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Commit

Permalink
Fixed specs for new Formidable
Browse files Browse the repository at this point in the history
  • Loading branch information
assaf committed Dec 13, 2011
1 parent dbe65ef commit 5f16caa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/forms_spec.coffee
Expand Up @@ -538,8 +538,8 @@ vows.describe("Forms").addBatch(
</html>
"""
brains.post "/forms/upload", (req, res)->
[text, image] = [req.body.text, req.body.image]
if text || image
if req.files
[text, image] = [req.files.text, req.files.image]
data = File.readFileSync((text || image).path)
if image
digest = Crypto.createHash("md5").update(data).digest("hex")
Expand Down

0 comments on commit 5f16caa

Please sign in to comment.