Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serve PDFs with correct Mime Type / Content Type #231

Open
ghost opened this issue Mar 5, 2018 · 3 comments
Open

Serve PDFs with correct Mime Type / Content Type #231

ghost opened this issue Mar 5, 2018 · 3 comments

Comments

@ghost
Copy link

ghost commented Mar 5, 2018

Hi - Is it possible to have imageresizing.net library serve non image files with the original content type?

I found this https://stackoverflow.com/questions/30273451/cache-xml-files-without-application-octet-stream-type/30309550#30309550
(but we have disk caching disabled so I dont know if applies here)

If it makes any difference we're using s3reader2 plugin

Here is the relevant packages.config:

  <package id="ImageResizer.Plugins.AnimatedGifs" version="3.4.3" targetFramework="net40" />
  <package id="ImageResizer.Plugins.DiskCache" version="3.4.3" targetFramework="net40" />
  <package id="ImageResizer.Plugins.Logging" version="3.4.3" targetFramework="net40" />
  <package id="ImageResizer.Plugins.PrettyGifs" version="3.4.3" targetFramework="net40" />
  <package id="ImageResizer.Plugins.S3Reader2" version="4.2.0" targetFramework="net45" />
  <package id="ImageResizer.Storage" version="4.2.0" targetFramework="net45" />```
@lilith
Copy link
Member

lilith commented Mar 6, 2018 via email

@ghost
Copy link
Author

ghost commented Mar 6, 2018

@nathanaeljones you're right, i had partially updated in a rush. my bad!

re content types - right now, just need application/pdf

@shawngrona
Copy link

Hi - Any update on supporting application/pdf content type?

@lilith lilith changed the title Mime Type / Content Type Serve PDFs with correct Mime Type / Content Type Jul 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants