Allow document upload to specify public

remove logging or make debug