fix non-fileupload code

Does not try to create fileupload inputs if there is no fileupload code
Merge pull request #29 from zvictor/master

fix non-fileupload code