w3c / web-share-target

Web API proposal for receiving shared data
https://w3c.github.io/web-share-target/
Other
191 stars 20 forks source link

Skip bad files entries instead of failing the whole share target #77

Closed ewilligers closed 5 years ago

ewilligers commented 5 years ago

Algorithm steps 7.1 and 7.3 of post-processing the share_target member currently force the entire share target to be rejected if we receive an empty name, or if an accept entry is not acceptable. We can simply discard the offending ShareTargetFiles dictionary.

ewilligers commented 5 years ago

If an accept entry is not acceptable, we can discard that accept entry only.