fix a bug on POST

the validation at the beginning of the setup method caused the upload
to fail if no post parameters were specified.
Merge pull request #2 from ilbesculpi/branch-new-api

fix a bug on POST