This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes PDF upload content type is application/x-download Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Products » JBoss/WildFly
Reply Bookmark "PDF upload content type is application/x-download" Watch "PDF upload content type is application/x-download" New topic
Author

PDF upload content type is application/x-download

Kem Broder
Greenhorn

Joined: Jul 25, 2002
Posts: 6
Hi,
Just realised I'm having this problem and the weird thing is it worked before. I just can't figure out what I've done to break my app.
I'm uploading a file and need to inspect the content type to work out what I want to do with it. PDF files had been uploading fine with the content type as application/pdf. However, I've found that now they are uploading with the content type application/x-download.

I've tried various things, adding a mime mapping to the web.xml, checked the mime-types in my web server, run straight against my app server, but the problem persists. Has anyone any ideas why the content type is showing up as something other than what it is?

Cheers,
confused,
Kem
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: PDF upload content type is application/x-download
 
Similar Threads
PDF from a Servlet
mime types in J2ee Application
web.xml causes 404 error
Mistakenly changed web.xml
File uploading issue with Firefox