Permalink
Browse files

moved note outside of code block

  • Loading branch information...
coolaj86 committed Nov 9, 2012
1 parent 9917a61 commit 9a125d2d71501bad9ee00ef1efe74a7ae1846bee
Showing with 1 addition and 2 deletions.
  1. +1 −2 README.md
View
@@ -121,6 +121,7 @@ form.on('end', function (fields, files) {
fields.password = fields.password[0];
console.log(fields, files);
});
+```
NOTE:
I put a lot of thought (too much, in fact) into how to represent fields and files in a way which is both consistent and easy to use.
@@ -146,8 +147,6 @@ and handle the fields in a `switch` is ugly / cumbersome.
Another workaround is to require php-style field naming conventions such as `categories[]` and `username`, but PHP is <insert-profanity-here> and self-respecting individuals have a hard time taking anything that started with PHP seriously, even though it's atually not a terribly profane solution.
The downside to this solution is that it requires parsing field names.
-```
-
## Future Enhancements
needs an abstracted `error` event for both `PoorForm` and `http#request`

0 comments on commit 9a125d2

Please sign in to comment.