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.