amazon-cognito - 如何使用 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));
解决方案
推荐阅读
- python - How do I load a file into a dictionary where key:text, val: numpy array of floats?
- c - C - read file and strtok into array
- tensorflow - 如何获得与 TF 中隐藏层相关的权重?
- azure-devops-rest-api - Create Azure Devops (security) group like 'Contributors' with Permissions via Rest API or Client DLL
- linq - 我正在学习的 asp.net 核心项目中的 Linq 和 SQL 注入
- javafx - 为什么在播放音频后显示图像视图,而在 javafx 中播放音频之前将图像的可见性设置为 true?
- gnuradio-companion - [gnuradio-companion]ModuleNotFoundError 无法导入 gnuradio
- java - Can't visualize the insertion of a node at the end of a linked list
- python - 使用 pip install 命令为 Windows 10 安装 matplotlib 库时出错
- python - How do I iterate over an ndarray without using for/while loops?