hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <http-as...@dubioso.net>
Subject Re: ContentType in FilePart
Date Fri, 03 Nov 2006 13:20:16 GMT
sudip shrestha wrote:
> Is there a way I can detect the content-type of the file I am trying to
> upload with some external libraries (besides using some sort of extension
> map that maps extensions to the mime-type)?

None that I know of. But if it doesn't matter to your application what
kind of content you are uploading, I suggest to leave it as null. That
will set the default content type "application/octet-stream".

hope that helps,
  Roland


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message