Bug 35571

Summary: opac-rertrieve-file.pl does not serve files with the correct mimetype
Product: Koha Reporter: Nick Clemens (kidclamp) <nick>
Component: Architecture, internals, and plumbingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Nick Clemens (kidclamp) 2023-12-14 13:59:48 UTC
Some libraries use this feature to host files for news or other uses

When using this to display an image we don't send image headers, so the browser downloads the file.

If we were to save the mimetype for uploads we could serve the images or other files in a more correct manner