update logic for setting upload file key