On Thu, Jun 24, 2010 at 3:36 PM, Douglas Mason <[email protected]> wrote:
> curl -b cookies.txt -F token="359d6add9d7d2d7f61c0e47e872d932b+\\" -F
> filename="Test.txt" -F "file=whatever" "
> http://www.domain.com/w/api.php?action=upload";
>
[...]
> <span style="color:blue;">&lt;error code=&quot;missingparam&quot;
> info=&quot;One of the parameters sessionkey, file, url is required&quot;
> xml:space=&quot;preserve&quot;&gt;</span>
>
Does curl send the file in multipart/form-data format?

>
>  <span style="color:blue;">&lt;error
> code=&quot;internal_api_error_MWException&quot; info=&quot;Exception Caught:
> Internal error in ApiResult::setIndexedTagName: Bad parameter&quot;
> xml:space=&quot;preserve&quot;&gt;</span>
>
That is definitely a bug. I will look into it when I have time.


Bryan

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

Reply via email to