I'm not a fan of this from the "privacy" viewpoint, maybe I'm a bit paranoid. But I think we should not publicly record the fact that the user attempted to edit article "Foo" until they actually save the edit. I don't feel very strongly about this, though.
Assuming we wanted to implement this (CC @Jdforrester-WMF):
- My paranoid viewpoint is no longer paranoid if the source wiki is private, exposing a page title could be bad. This affects Wikimedia wikis too, as cross-wiki upload is possible from our private wikis to Commons. We'd have to check for this in the code.
- I would push to have a brief note in the dialog about this, but I'm not sure how to write this briefly.
- I would want to check with Legal just in case. (Not anticipating any issues this way, but just in case.)
What I would like the most (and, I imagine, what the Commons community would like the most) would be for the file to not actually be uploaded until the page is saved, and for any file uploads to happen simultaneously with the page save. Right now I'm pretty sure there's no way in MediaWiki to do that, but it should be possible to extend the upload stash functionality to allow it, and to display the images from the stash to the current user (when previewing the article or using VE). This would be a lot of work, though.
It's possibly but only in a very hacky way. You can use the upload stash, and show thumbnails from it, but:
- it's uncached and streamed straight from the server and because of that has some pretty restrictive size limitations
- you cannot stash the image description, you have to keep it around until you unstash the file
- there is no way to do a page edit and a file unstash (much less an edit and an unstash on two separate wikis) in anything resembling a transaction. (Even simple uploads are not enclosed in a single transaction currently, and can break in messy ways. Not to mention the issue of creating a transaction for a mix of DB and file operations.) That seems very hard.
I'm still not convinced this is a good idea, but it's a valid request, so I'm going to make this configurable (off by default) with the patch above and then pass the ball to someone else to hold an RFC or discussion or whatever, and then possibly configure it.
This is now possible to set in configuration, with something like $wgUploadDialog['comment'] = 'Cross-wiki upload from $HOST (page "$PAGENAME")'. I still don't think that should be done, but it's not my decision, and now also not my concern.