sp-dev-docs
sp-dev-docs copied to clipboard
Selected files from media action type are not returned
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
No response
What browser(s) / client(s) have you tested
- [ ] 💥 Internet Explorer
- [ ] 💥 Microsoft Edge
- [ ] 💥 Google Chrome
- [ ] 💥 FireFox
- [ ] 💥 Safari
- [ ] mobile (iOS/iPadOS)
- [ ] mobile (Android)
- [ ] not applicable
- [ ] other (enter in the "Additional environment details" area below)
Additional environment details
- SPFx version 1.15.0-beta.6
Describe the bug / error
When using the VivaAction.SelectMedia action type in an ACE the selected files are not returned from the onAction method.
Steps to reproduce
- Add media action type to the adaptive card template
{
"type": "VivaAction.SelectMedia",
"id": "files",
"parameters": {"mediaType": "MediaType.Image", "allowMultipleCapture": true, "maxSizePerFile" : 200000, "supportedFileFormats": ["jpg"]},
"title": "${selectFileButton}"
}
- Retrieve data via onAction method inside QuickView class
public onAction(action: IActionArguments): void {
console.log(action);
}
- The onAction method does not return any selected files.
Expected behavior
Selected files should be returned among other (text) values.
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Did this get resolved? I am seeing the same issue in 1.15 .
I'm having the same issue with 1.15.2
@manufz @a1mery @dcashpeterson just checking - based on tutorial you can use a specific typings for the arguments. I understand it should be returned anyway using console.log
.
But want to double check if the issue is still there if you follow the tutorial.
This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within the next 7 days of this comment. Please see our wiki for more information: Issue List Labels: Needs Author Feedback & Issue List: No response from the original issue author
@AJIXuMuK let me go through the tutorial with the latest build. Last time I checked the params were still not working but let me confirm.
@AJIXuMuK This is resolved.
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues