Copy a file to HoloLens emulator

379 Views Asked by At

I have a UWP application that allows a user to pick a file (using a file selection dialog). I can run the application inside of the HoloLens emulator. The file selection dialog seems to be working correctly. However, there are no files to choose from !

I want to copy a file from my local file system into the emulator so that the application has something to work with. How do I do that?

[EDIT]

Below is an image of the File Explorer for "PublicDocuments". Here, files can be uploaded. However, the "PublicDocuments" folder isn't visible from inside the emulator.

PublicDocuments

Below is an image of the File Explorer for "Documents". The buttons "Choose File" and "Upload" are not visible.

Documents

2

There are 2 best solutions below

0
On BEST ANSWER

Open any folder and scroll down - the Upload button is at the very bottom.

2
On

You can use Device Portal for this. Open Device Portal for the emulator (using the globe icon on the toolbar) and browse to the File Explorer page. You can upload files to user folders such as the Documents folder, as well as to the storage folders for your in-development app.