Hello.
For the moment all uploaded Blobs have Content-Type 'application/octet-stream', but it doesn't work for SVG images. I've prepared a small initial patch to for a fix. Please check. Sure, it should have move flexible setting of content-type, but I hope it'll help to improve the module's functionality.

Best regards.

Comments

drholera created an issue. See original summary.

ramuchidambaram’s picture

The above patch works fine.

larisse’s picture

Status: Active » Needs review
StatusFileSize
new2.45 KB

Hi!
I was facing the same error, but for images and pdf files. So I update the patch to support some types that was wrong Content Type too.

geoanders’s picture

Assigned: Unassigned » geoanders

Will review when I have time to dig in. Will roll into latest branch if all is well.

  • geoanders committed faed30f on 8.x-2.x
    Issue #3074766 by drholera, larisse: SVG images have wrong Content-Type.
    
geoanders’s picture

Status: Needs review » Fixed

Seems to be working fine now. Made an adjustment to use pathinfo instead to get extension.

Would be nice to have a valid file extensions config for this module, but that is a feature request at this point.

geoanders’s picture

Status: Fixed » Closed (fixed)