Last modified: 2011-10-26 16:11:02 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T33959, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31959 - Accept multipart/form-data Content-Type for API Edit
Accept multipart/form-data Content-Type for API Edit
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-26 14:32 UTC by Smallman
Modified: 2011-10-26 16:11 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Smallman 2011-10-26 14:32:35 UTC
The edit api should accept multipart/form-data rather than just application/x-www-form-urlencoded.

The encoding of large articles can needlessly double the post, while also requiring additional encoding/decoding processing.
Comment 1 Roan Kattouw 2011-10-26 14:34:44 UTC
Have you tried to see if it supports multipart/form-data now? This seems to be a PHP issue to me, not a MediaWiki issue per se.
Comment 2 Smallman 2011-10-26 16:06:32 UTC
I just tried and it works! 

Will update API:Edit that large text files should be done via multipart as opposed to urlencoded.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links