Based on my understanding, we are not only doing an Upload, we are also doing some Encryption here, suggest to separated one method into two. A. EncryptFile. B. UploadAsset