Anbu
Anbu

Reputation: 953

How can I find the content type of the file when user uploads it using java servlets?

Whenever a user uploads a file I need to know the file's content type using java servlets.

Upvotes: 0

Views: 48

Answers (1)

Borealid
Borealid

Reputation: 98459

When you get a file from an upload, get its type via http://www.rgagnon.com/javadetails/java-0487.html .

Upvotes: 1

Related Questions