checkauth in upload
Simplify config