Content types have not been properly set when file extensions contain uppercase character

Created on 4 March 2025, 2 months ago

Problem/Motivation

The content types are not properly set when using Azure Blob Storage File System to upload files to Azure. As long as the file extension contains uppercase, the content type under Azure is "application/octet-stream," a default content type at Azure storage.

Steps to reproduce

Change a file extension for a PDF or image file to up case and upload the file. For example, if you upload an abc.PDF file or abc.PNG, the file content type will become application/octet-stream at Azure.

Proposed resolution

It can be fixed by converting the file extension to lower case.

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Active

Version

2.3

Component

Code

Created by

🇨🇦Canada wuinfo - bill wu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024