You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What information was incorrect, unhelpful, or incomplete?
Safari has a caveat that other browsers don't encounter; safari obscures the files, so if developers are using items.length to verify the user is dragging files, that will not work on safari, but does on other browsers. safari only reveals that the user is dragging files through the dataTransfer.types property.
What browsers does this problem apply to, if applicable?
Safari
What did you expect to see?
items.length having non-zero length when user is dragging files.
Did you test this? If so, how?
trigger drag event with files on chrome and safari, items has values on chrome, items has no values on safari.
Can you link to any release notes, bugs, pull requests, or MDN pages related to this?
This issue was automatically closed because the title was left as the default, and a summary was not added.
If this is not a spam issue, please replace the <SUMMARIZE THE PROBLEM> part of the title with a short summary of the reported issue, and then post a follow-up comment. A maintainer will review your issue and reopen it if needed.
github-actionsbot
added
the
invalid 🚫
Invalid issues or pull requests (wrong repo, spam, duplicates, etc.). This won't get merged. Sorry!
label
Oct 31, 2024
mattcohen24
changed the title
api.DataTransfer.files - <SUMMARIZE THE PROBLEM>
api.DataTransfer.files - <incomplete information on safari: items not filled on drag event>
Oct 31, 2024
mattcohen24
changed the title
api.DataTransfer.files - <incomplete information on safari: items not filled on drag event>
api.DataTransfer.files - incomplete information on safari: items not filled on drag event
Oct 31, 2024
queengooborg
added
data:api 🐇
Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
and removed
invalid 🚫
Invalid issues or pull requests (wrong repo, spam, duplicates, etc.). This won't get merged. Sorry!
labels
Oct 31, 2024
What type of issue is this?
Missing compatibility information
What information was incorrect, unhelpful, or incomplete?
Safari has a caveat that other browsers don't encounter; safari obscures the files, so if developers are using items.length to verify the user is dragging files, that will not work on safari, but does on other browsers. safari only reveals that the user is dragging files through the dataTransfer.types property.
What browsers does this problem apply to, if applicable?
Safari
What did you expect to see?
items.length having non-zero length when user is dragging files.
Did you test this? If so, how?
trigger drag event with files on chrome and safari, items has values on chrome, items has no values on safari.
Can you link to any release notes, bugs, pull requests, or MDN pages related to this?
No response
Do you have anything more you want to share?
No response
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/items
MDN metadata
MDN page report details
api.DataTransfer.files
The text was updated successfully, but these errors were encountered: