• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

PDF upload content type is application/x-download

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Good night. Drive safely. Here's a tiny ad for the road:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic