Forum Discussion
Posting files show as insecure and can't open
- Feb 24, 2020
BrettHafer I had an open ticket with Microsoft for over a week and they finally replied that it is a known issue. They are a working on a back end fix but do not have an ETA. Not the greatest reply, I know, but it's nice to know I'm not the only one, and that they are already working on resolving.
EMS-KIN1970 that's a great workaround, thank you!
I faced same problem and figured out what i did wrong.
When bot receives user consent to upload file its response has replyToId.
It is the activity id that needs to be used to send the file info card ie. https://smba-traff....../conversation/<conversationId>/activities/<replyToId>
After making this change it worked . I have used buttons in teams card and there also to update the card once button is clicked replyToId is used.
"replyToId": "1:1_lchIqmYZbPTi2xph1pGR-4BGAjaduRNThQZ6GTWEh4",
"value": {
"type": "fileUpload",
"action": "accept",
"context": {},
"uploadInfo": {
"contentUrl": "https:///contosco....Documents/Applications/Athakur_laptop/text_file1.doc",
"name": "text_file1.doc",
"uploadUrl": "https://contosco-my.sharepoint.com.......",
"uniqueId": "E4F8E72D-7D61-403C-9D6B-31E595EDC5B5",
"fileType": "doc"
}
},