Minor refactoring in examples/upload.c
Minor refactoring in examples/upload.c

brockn/squeasel,UCSD-PL/csolve-webserver,brockn/squeasel,daokoder/Marten,jaz303/mongoose-mit,pfalcon/mongoose-mit,brockn/squeasel,GerHobbelt/civet-webserver,mygittyhubby/free-mongoose,GerHobbelt/civet-webserver,plan44/libmongoose,pfalcon-mirrors/mongoose-mit,mygittyhubby/free-mongoose,chyland/Meerkat,daokoder/Marten,plan44/libmongoose,daokoder/Marten,jaz303/mongoose-mit,UCSD-PL/csolve-webserver,plan44/libmongoose,mulle-nat/mongoose,pfalcon-mirrors/mongoose-mit,jaz303/mongoose-mit,danburkert/squeasel,daokoder/Marten,mulle-nat/mongoose,mulle-nat/mongoose,danburkert/squeasel,pfalcon/mongoose-mit,chyland/Meerkat,mygittyhubby/free-mongoose,pfalcon-mirrors/mongoose-mit,pfalcon-mirrors/mongoose-mit,UCSD-PL/csolve-webserver,mygittyhubby/free-mongoose,jaz303/mongoose-mit,chyland/Meerkat,jaz303/mongoose-mit,daokoder/Marten,danburkert/squeasel,daokoder/Marten,UCSD-PL/csolve-webserver,mygittyhubby/free-mongoose,pfalcon/mongoose-mit,mulle-nat/mongoose,danburkert/squeasel,GerHobbelt/civet-webserver,jaz303/mongoose-mit,brockn/squeasel,GerHobbelt/civet-webserver,GerHobbelt/civet-webserver,plan44/libmongoose,GerHobbelt/civet-webserver,pfalcon/mongoose-mit,brockn/squeasel,danburkert/squeasel,mygittyhubby/free-mongoose,plan44/libmongoose,mulle-nat/mongoose,brockn/squeasel,pfalcon/mongoose-mit,chyland/Meerkat,danburkert/squeasel,plan44/libmongoose,chyland/Meerkat,daokoder/Marten,mygittyhubby/free-mongoose,chyland/Meerkat,UCSD-PL/csolve-webserver,pfalcon-mirrors/mongoose-mit