upload files with public parameter