Maarten, I've recently changed the API interface in the rewrite branch to allow sending multipart/form-data messages; see r7339. This is a foundation on which file uploading can be built.
Russ ----- Original Message ----- From: "Maarten Dammers" <[email protected]> To: "Pywikipedia discussion list" <[email protected]> Sent: Friday, October 09, 2009 7:27 AM Subject: [Pywikipedia-l] Upload api > Hi guys, > > I'm playing around with the new upload api (it's enabled at > http://test.wikipedia.org/). > Now I'm wondering what the best way would be to implement it in the > rewrite branch because uploading goes down to the core. > > Three ways of uploading are possible: file, url and chunks > 1. File: About the same way as we do now in upload.py, but use the api. > Prepare a form as multipart data and post it. > 2. Url: Nice bandwith saver. You just pass the url of the file and the > wiki will fetch it for you. > 3. Chunks: Nice to get around timeout problems. The file is send in > pieces (chunks) with a stop and wait protocol. > > Url shouldn't be to hard to implement because it uses a normal http > POST. File and chunks on the other hand need to be posted as > multipart/form-data. > > Any suggestions for the implementation? > > Maarten > > > _______________________________________________ > Pywikipedia-l mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l > _______________________________________________ Pywikipedia-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
