WeChat Mini Programs profile picture upload problem.

Does the filePath in

uploadFile have to be the address of the photo selected by chooseImage? It doesn"t seem to work if I want to upload Wechat"s profile picture (userInfo.avatarUrl) to the background.
error report:
clipboard.png

what do I do if I want to upload Wechat"s profile picture without selecting a profile picture and upload the selected picture in the selected case?

Menu