added function that lets users upload files