fix multiart streaming.

Use the correct module to detect the content type while sending a file
using the multipart API.