14577: Add filename to file form part so correct content type header is generated in POST request

https://sailthru.fogbugz.com/default.asp?14577
Remove unused imports