fix non-fileupload code

Does not try to create fileupload inputs if there is no fileupload code