https://bugzilla.wikimedia.org/show_bug.cgi?id=28692

--- Comment #2 from Brion Vibber <[email protected]> 2011-04-25 17:52:42 UTC 
---
Keep in mind that some files will be hundreds of megabytes or more such as
videos -- embedding raw file contents into a structured-text API return won't
scale as a general solution.

My recommendation is implementation of cross-origin request control to simply
allow JS code running in other contexts to access the public image file data
through XMLHTTPRequest -- bug 25886 covers this for the styles and whatnot on
bits.wikimedia.org but it doesn't seem to have gotten filed.

Has been previously discussed as in this thread:
http://www.gossamer-threads.com/lists/wiki/wikitech/220659

but as far as I know not implemented -- I've gone ahead and filed as bug 28700.

In the meantime, if you need this for your own site, for code running on the
main wiki's domain, you can enable ApiSvgProxy extension. This returns raw XML
data for SVGs only; it won't work over JSONP but does give you an XHR-friendly
interface on your wiki's main domain.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to