imazen / imazen/resizer

Serve PDFs with correct Mime Type / Content Type

Open
#231 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
583
Forks
169
PR merge metrics
No merged PRs in 30d

Description

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:
```





```

Contributor guide

Open the contributing guide

Research direction

Start with the package configuration in the issue, especially ImageResizer, S3Reader2, and Storage, and reproduce how a PDF response is served. Trace where the response content type is selected and compare it with the original file type. Done means non-image files such as PDFs are served with their original content type rather than application/octet-stream.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.