如何使用 Amplify 将图片上传到 AWS Cognito?

我在 Angular 中使用 Amplify,似乎找不到设置图片属性的方法。所有其他属性都正常

      Auth.completeNewPassword(
        user,this.profileForm.get('newPassword')?.value,{
          "phone_number": String(this.profileForm.get('phone')?.value),"given_name": this.profileForm.get('fName')?.value,"family_name": this.profileForm.get('lName')?.value,"locale": this.profileForm.get('language')?.value,"picture": // How do I set this with a file uploader input?
        }
      )
      .then(data => console.log("Changed Password! -->",data))
      .catch(err => console.log("Password change failed: ",err));
luofeihuai7713 回答:如何使用 Amplify 将图片上传到 AWS Cognito?

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/15012.html

大家都在问