It's not currently possible to retrieve any warnings that are returned by the upload API.
It currently does this:
$response = $this->api->postRequest( new SimpleRequest( 'upload', $params ) );
return ( $response['upload']['result'] === 'Success' );
I'm trying to catch duplicate uploads (for T269518), but at the moment it's just false for anything amiss.
It's not currently possible to retrieve any warnings that are returned by the upload API.
It currently does this:
I'm trying to catch duplicate uploads (for T269518), but at the moment it's just
falsefor anything amiss.