added visibility attribute to allow public uploads