sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Selected files from media action type are not returned

Open manufz opened this issue 2 years ago • 3 comments

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

  1. 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}"
}
  1. Retrieve data via onAction method inside QuickView class
public onAction(action: IActionArguments): void {
    console.log(action);
}
  1. The onAction method does not return any selected files.

Expected behavior

Selected files should be returned among other (text) values.

manufz avatar Apr 26 '22 13:04 manufz

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Apr 26 '22 13:04 ghost

Did this get resolved? I am seeing the same issue in 1.15 .

dcashpeterson avatar Jul 19 '22 12:07 dcashpeterson

I'm having the same issue with 1.15.2

a1mery avatar Oct 06 '22 11:10 a1mery

@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.

AJIXuMuK avatar Jan 11 '23 15:01 AJIXuMuK

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

ghost avatar Jan 18 '23 18:01 ghost

@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.

dcashpeterson avatar Jan 18 '23 20:01 dcashpeterson

@AJIXuMuK This is resolved.

dcashpeterson avatar Jan 20 '23 17:01 dcashpeterson

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

ghost avatar Jan 28 '23 00:01 ghost