home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.comp.os.windows-10      Steaming pile of horseshit Windows 10      197,590 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 197,091 of 197,590   
   Maria Sophia to Chris   
   Understanding MTP Photo Transfer Issues    
   03 Feb 26 15:01:08   
   
   XPost: misc.phone.mobile.iphone, comp.mobile.android   
   From: mariasophia@comprehension.com   
      
   So that everyone benefits from every post, and since I invest a great   
   amount of energy to help others, I'm sharing the following write-up across   
   the Windows, Android, and Apple newsgroups because the underlying problem   
   affects all users who transfer photos to Windows via USB, regardless of   
   platform.   
      
   While the specific example below focuses on iOS, the technical explanation   
   of MTP behavior, DCIM folder generation, caching, and enumeration failures   
   applies broadly to both iPhone and Android devices when interacting with   
   Windows.   
      
   Since I'm not the only one who tests all three ecosystems at home daily,   
   I'm sure many others use all three ecosystems so they run into the same   
   symptoms-missing folders, incomplete DCIM listings, or inconsistent USB   
   transfers that Chris described on the iPhone newsgroups last week.   
      
   Hence, to leverage the knowledge to everyone concerned, below I'm posting   
   the full analysis verbatim so everyone can benefit from the same technical   
   background and workarounds that the iOS newsgroup recently benefited from.   
      
   Here is the reference to the article I just researched the below reply for:   
    From: Chris    
    Newsgroups: misc.phone.mobile.iphone   
    Subject: Re: Photo transfer to PC problem   
    Date: Sun, 1 Feb 2026 19:41:33 -0000 (UTC)   
    Message-ID: <10loa9c$21bm$1@dont-email.me>   
      
   Chris wrote:   
   > It shouldn't be this difficult.   
      
   Hi Chris,   
      
   Given I'm running an experiment for an entire year on this newsgroup by   
   being less snarky about responding to comments like that above where I have   
   to bite my tongue when it comes to how Apple does things differently... :)   
      
   Given I'm on the Windows newsgroups all day, every day, in addition to the   
   Android newsgroups, hopefully I can help you better understand what's going   
   on when dealing with the Apple iOS ecosystem in terms of interoperability.   
      
   Below is just my kind and hopefully helpful take on iPhone-to-Windows USB   
   photo transfer taking into account technical explanations and workarounds.   
      
   When connecting an iPhone to a Windows 10 PC via USB, the Windows File   
   Explorer may only display older DCIM subfolders (e.g., 202106_, 202306_a)   
   while newer folders are sometimes missing. This is apparently a known   
   limitation of how iOS exposes photos to Windows via the MTP (Media Transfer   
   Protocol) interface.   
      
   It's important to keep in mind that the iPhone does NOT expose its real   
   filesystem, as that would be what every other common consumer operating   
   system does, and Apple doesn't do things the way other OEMs do them.   
      
   Android's MTP implementation, for example, DOES give us a direct view of   
   the actual internal storage, not a virtual reconstructed folder tree.   
      
   Instead of a direct view, iOS apparently generates a virtual DCIM directory   
   on demand. This Apple-only virtual directory is apparently incomplete, slow   
   to update & prone to caching errors, especially with large photo libraries.   
      
   So why does Windows show only older folders?   
   I can't say for sure, but here's my step-by-step probable-cause analysis...   
   1. First off, keep in mind that iOS uses MTP, not USB mass storage.   
   2. Unfortunately, iOS' MTP does not provide direct filesystem access.   
   3. Instead, iOS dynamically constructs a virtual DCIM folder tree.   
   4. The MTP index is cached.   
   5. Windows may reuse an outdated index, causing invisible newer folders.   
   6. iOS restricts access unless the device is unlocked and awake.   
   7. The DCIM structure is regenerated only when certain system events occur   
   8. Such as unlocking the phone, opening Photos, rebooting, etc.   
   9. Large libraries (>10k photos) cause partial enumeration,   
      where only older folders sometimes appear.   
   10. Some Lightning cables cause intermittent MTP enumeration failures.   
      
   Note the caching in step 4 above?   
   That problematic caching happens on both sides, i.e., both iOS and Windows.   
   But each caches in different ways. Therein lies the rub.   
      
   Notice that iOS caches the DCIM virtual directory internally.   
   But at the same time, iOS does not expose its real filesystem.   
      
   When you connect over MTP, iOS generates a virtual DCIM directory from its   
   Photos database whose generated directory is cached in the Photos database   
   (PhotoLibraryServices) and in the MTP daemon (mobile_file_relay / imagent /   
   ptpd stack) and in in-memory structures that persist until reboot.   
      
   This means if iOS decides the DCIM tree hasn't "changed enough," it reuses   
   the old virtual structure, with the result that new folders may not appear   
   until iOS rebuilds the virtual DCIM tree.   
      
   Yet rebuilding only happens after certain triggers (unlocking, opening   
   Photos, rebooting, etc.). So part of the "cache" results is simply iOS not   
   regenerating the virtual folder list.   
      
   But wait. That's not all. There's Windows caching involved also.   
      
   Windows caches MTP folder listings in the Windows Shell.   
   Windows File Explorer uses the Windows Portable Devices (WPD) API, Shell   
   folder enumeration cache, Thumbnail cache, and Metadata cache in   
   %LOCALAPPDATA%\Microsoft\Windows\Explorer   
      
   Therefore, Windows may reuse previously enumerated folder lists, and   
   previously enumerated file lists, and previously generated thumbnails.   
      
   Yikes.   
      
   This is perhaps also why you sometimes see old folders even after deleting   
   them on the phone as new folders don't appear until Windows forces a   
   re-enumeration. Sigh.   
      
   When opening the Windows Photos app suddenly "fixes" the folder list, it's   
   likely because Photos forces a deeper MTP scan than File Explorer does.   
      
   Who knew?   
   Now you do.   
      
   Now that we all know this, what are practical fixes that restore the   
   missing folders?   
      
   1. Unlock the iPhone and keep it awake.   
      a. First connect the phone.   
      b. Then Unlock it.   
      c. Then open the Photos app and leave it open.   
      d. Now open the Windows File Explorer.   
      e. Go to -> This PC -> iPhone -> Internal Storage -> DCIM.   
      f. This forces iOS to rebuild the MTP directory.   
      
   If it doesn't work... then...   
      
   2. Revoke and re-authorize "Trust This Computer".   
      a. To go iPhone Settings -> General -> Transfer or Reset   
      b. Then go to Reset -> Reset Location & Privacy.   
      c. Then reconnect and tap "Trust".   
      d. This forces iOS to rebuild the MTP permissions and index.   
      
   If it still doesn't work... then...   
      
   3. Restart both devices.   
      a. Restart iPhone.   
      b. Reboot Windows.   
      c. This clears cached MTP indexes on both sides.   
      
   If doing all that still doesn't work... then...   
      
   4. Use a different USB port or cable.   
      
   [continued in next message]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca