You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried FileOpenPicker to select a file from the machine. But the file picker is not opening for me when running in the web assembly. The sample code is given below;
var fileOpenPicker = new FileOpenPicker();
fileOpenPicker.SuggestedStartLocation = PickerLocationId.Desktop;
StorageFile fileOpen = await fileOpenPicker.PickSingleFileAsync();
Getting the below error:
User did not make a selection or the file selected wasdeemed too sensitive or dangerous to be exposed to the website - SecurityError: Failed to execute 'showOpenFilePicker' on 'Window': Must be handling a user gesture to show a file picker.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have tried FileOpenPicker to select a file from the machine. But the file picker is not opening for me when running in the web assembly. The sample code is given below;
var fileOpenPicker = new FileOpenPicker();
fileOpenPicker.SuggestedStartLocation = PickerLocationId.Desktop;
StorageFile fileOpen = await fileOpenPicker.PickSingleFileAsync();
Getting the below error:
User did not make a selection or the file selected wasdeemed too sensitive or dangerous to be exposed to the website - SecurityError: Failed to execute 'showOpenFilePicker' on 'Window': Must be handling a user gesture to show a file picker.
Can you please help me here @jeromelaban
Beta Was this translation helpful? Give feedback.
All reactions