I'm writing an application that can upload image files and video files, and allow the user to upload from their 'Pictures' folder or a USB stick. Currently it can do everything except upload a video file from a USB stick. Images from the 'Pictures' folder are fine, images from a USB stick are fine, videos from the 'Pictures' folder are fine, but videos from a USB stick are not fine.
There really isn't much code to this:
private async Task SearchFoldersForMedia(StorageFolder folderToSearch)
{
IReadOnlyList<StorageFile> allFilesInFolder = await folderToSearch.GetFilesAsync();
// other code here...
}
It's pretty bare-bones, honestly. If my 'Pictures' folder has 3 videos (.mp4) then that one line will find three video files, but if my datastick has 3 videos then that same line will find nothing. If I look in either my datastick or my 'Pictures' folder for image files (.jpg, .jpeg, or .png) then they all get found as they should be.
What's causing this?