Here’s a sample code showing how to upload files with
jsOAuth.
I’ve extracted the code from my own application, so…
ItWorksForMe™ and YMMV, however any sane API should just work.
Update
Looks like posterous didn’t include the Gist, so here’s the link