prevented empty nameless files if no file is submitted