[Mediawiki-l] Inexplicable Errors using Upload API in 1.16b3

Bryan Tong Minh bryan.tongminh at gmail.com
Fri Jun 25 21:05:04 UTC 2010


On Thu, Jun 24, 2010 at 3:36 PM, Douglas Mason <douglasmason at gmail.com> 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



More information about the MediaWiki-l mailing list