Juan Rodríguez | 10 Feb 2011 12:11
Picon

Re: Image uploading: no response in last step

There is a bug in my first message:
$uploadVars['url'] = 'http://upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png';
//$uploadVars['file'] = $fileContent;

You must not use both params. I proved but it isn't still working. I have another problem: I installed LAMP and there is no support to curl by default, so I might have to compile from source...
I still think that code must work with minimal modifications. I suspect the problem is the wrapper: According with wikimedia doc, it must be a multipart/form-data request, and I'm not sure if I'm doing the last step correctly.

_______________________________________________
Mediawiki-api mailing list
Mediawiki-api <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Gmane