Double click one cloud file to fetch file but get two or more fetch data callback

Jojo Tang 86 Reputation points
2020-12-03T09:42:48.55+00:00

When working with the Cloud Filter API, double click "one" cloud file (icon_page_focus.ico) but app got more than one fetch callback and then download extra files

Original three cloud files
44589-fetch-file.png

Then double click "icon_page_focus.ico" file, app got three fetch callback to download three files
44725-fetch-all-file.png

Test with onedrive have the same problem.

I think the "similar file name" will be fetched at the same time.

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,745 questions
{count} votes

Accepted answer
  1. Rita Han - MSFT 2,171 Reputation points
    2020-12-04T07:33:54.567+00:00

    Hello @Jojo Tang ,

    I can reproduce this issue via double click on image file. Yes, same result with OneDrive and CloudMirror sample. However TXT files have no such issue.

    But when you change the default app for Photo viewer from Microsoft.Photos to MSPaint, this issue will disppear.

    So this seems related to Microsoft.Photos application's feature. It will preload the previous and the next image to the one you double click on, then you can click the < or > button to view them in less time. If you want to do further investigation, you can use ProcessMonitor to check the operations of the Microsoft.Photos application, you will find that two other image files are also read when you double click one image file.

    Thank you!


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.