Check https://commons.wikimedia.org/wiki/File:Joe_dirt.jpg which was uploaded using Visual Editor through English Wikipedia according to the edit summary. However, there is already a local file with the same name on English Wikipedia: https://en.wikipedia.org/wiki/File:Joe_dirt.jpg. This means that there currently is no way to use the Commons file on English Wikipedia, but the user who uploaded the file to Commons probably expected it to show up in an article which he was editing. In this situation, Visual Editor should have forced the user to choose a different file name for which there is no filename conflict between enwiki and commonswiki.
Customize query in gerrit
|mediawiki/core||master||+44 -0||mw.ForeignStructuredUpload.BookletLayout: Check upload filename for local duplicates|