nst / STHTTPRequest

Obj-C / Cocoa HTTP requests for humans
BSD 3-Clause "New" or "Revised" License
826 stars 75 forks source link

Support for multipart data #1

Closed MSchmidt closed 12 years ago

MSchmidt commented 12 years ago

It would be a great addition to this wrapper if you could support multipart data to allow uploads of binary files etc.!


I have been looking for some wrapper like this one for a long time. Great work!

nst commented 12 years ago

I've just added a new method:

[r setFileToUpload:@"/tmp/photo.jpg" parameterName:@"photo"];

Let me know if it meets your needs.

MSchmidt commented 12 years ago

This was fast :) All over this looks pretty solid. However, I'm getting my images as ALAsset and convert them to NSData. So an additional method setDataToUpload:parameterName would be nice.

nst commented 12 years ago

Here we are. Again, let me know if something doesn't work as expected.