uploadify and error checking