When sharing multiple files from WhatsApp to our iOS app, some files are received with identical names. This results in fewer files appearing in our app than were originally shared.
Expected Behavior
Each shared file should have a unique name, allowing our app to process and display all files shared from WhatsApp.
Current Behavior
Multiple files shared from WhatsApp sometimes have the same filename, causing our app to overwrite or ignore some files.
IMPORTANT: The problem is most noticeable with photos taken in quick succession, where the timestamp in the filename doesn't include milliseconds.
In this example, the files with timestamps 14-39-53 and 14-39-54 are duplicated, resulting in only 4 unique filenames instead of the 6 files actually shared.
Steps to Reproduce
Open WhatsApp on iOS
Select multiple photos taken in quick succession (within the same second)
Share these photos to our app
Observe the number of files received in our app
Check the filenames of the received files
Additional Information
This issue is specific to WhatsApp sharing on iOS
Other sharing sources (e.g., Photos app) do not exhibit this problem
The root cause appears to be the lack of millisecond precision in the timestamp used for filenames
Issue
When sharing multiple files from WhatsApp to our iOS app, some files are received with identical names. This results in fewer files appearing in our app than were originally shared.
Expected Behavior
Each shared file should have a unique name, allowing our app to process and display all files shared from WhatsApp.
Current Behavior
Multiple files shared from WhatsApp sometimes have the same filename, causing our app to overwrite or ignore some files.
IMPORTANT: The problem is most noticeable with photos taken in quick succession, where the timestamp in the filename doesn't include milliseconds.
Example of received files:
In this example, the files with timestamps 14-39-53 and 14-39-54 are duplicated, resulting in only 4 unique filenames instead of the 6 files actually shared.
Steps to Reproduce
Additional Information