Currently, upload only supports File and URL parameters. It'd be nice to support InputStream so you can e.g., stream bytes from a database into MediaWiki.
Sorry for the late reply. I've been thinking about this... what about dumping the stream contents to a temporary file and passing that? I'm very hesitant to add new overloads.
Currently,
upload
only supports File and URL parameters. It'd be nice to support InputStream so you can e.g., stream bytes from a database into MediaWiki.