Test for nil value. Clean up error messages.
Return ID, rather than FileID(). The upload loop will figure out which
real file we are supposed to write to.
Move u.updateUploaded() call to correct spot. Fix test to determine if
file is invalid. It was checking for >= expected size, should be >
expected size.