pyke369 / PKMultipartInputStream

an NSInputStream subclass suitable for building multipart/form-data http requests bodies in MacOSX/iOS applications.
http://github.com/pyke369/PKMultipartInputStream
MIT License
73 stars 19 forks source link

Add the ability to manually specify the content type for files #16

Closed jznadams closed 7 years ago

jznadams commented 7 years ago

I use a backend service with strict MIME type checking, and the MIMETypeForExtension method does not choose the best value for some of the files I work with. This change allows you to manually override the contentType when desired.

pyke369 commented 7 years ago

Thanks for this patch Jason, much appreciated.