Allow uploads via basic auth.

Also allow uploads via basic auth.