Great that we are moving forward with Upload-by-URL uploads :)
I have been simultaneously testing / developing things with the
new-upload branch. So the injection script check if upload over
javascript api is supported then uses that (over parsing the form html
output).
We also have to think about how cross site posting could work. ie the
user is on a wikipedia page but the repository license indicates we
should post the video clip or image to commons.
Either the upload api needs to support posting to shared repos (in
essence proxying the remote repository) or we need to do a higher level
proxy or we have shared edit tokens across internal domains? .... We
can't allow the JavaScript to run injections without getting its edit
token over local ajax request otherwise things would be open for denial
of service / abuse of credentials for resource injection.
I could try and add that support to the upload api branch but I don't
have much familiarity with how the magic of remote repositories and
internal api calls to those remote repository work... will have to
investigate.
--michael
Brion Vibber wrote:
I've enabled a test configuration of
MediaWiki's upload-by-URL ability
on
http://test.wikipedia.org/
The default configuration limits URL uploads to sysops, so for now
you’ll need to be a sysop on Test Wikipedia to try it out. If everything
seems fairly problem-free we’ll start rolling this out a bit more widely
for Commons and other sites.
In addition to being able to handle large files without an ugly manual
download+reupload, the upload-by-URL functionality is also needed for
future-facing work Michael Dale is working on to allow an on-wiki media
picker to fetch freely-licensed files from Flickr,
Archive.org, and
other places.
We may want to consider improvements to UI and workflow, but it seems to
at least work. :)
More at the Wikimedia technical blog:
http://techblog.wikimedia.org/2009/03/upload-by-url-for-testwikipediaorg/
-- brion vibber (brion @
wikimedia.org)
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l