Thread:Extension talk:Push/File Push Hanging/reply (4)

Regarding the

$requestData['file'] = new CurlFile($imagePage->getFilegetPath, 'image/jpg');

modification:

The issue is that since FileBackend was introduced to MediaWiki  returns a storage path  and not a real filesystem path. cURL can not resolve this into a real path. Unfortuneately it seems to be quite tricky to find the real FS path using the MediaWiki framework.

Maybe one could send the file as base64 encoded string. Getting the b64 content is pretty easy. But I'm not sure if the file upload api supports this...