jenkinsci / jenkinsci/google-storage-plugin

Only limited set Content Types available in autodetect mechanism

Open
#243 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
32
Forks
63
PR merge metrics
No merged PRs in 30d

Description

### What feature do you want to see added?

https://github.com/jenkinsci/google-storage-plugin/blob/4ef5d39ee2e235153085731665604f70cccf737e/src/main/java/com/google/jenkins/plugins/storage/AbstractUpload.java#L97

On upload, this plugin tries to guess file content type from extension and set Content Type header accordingly. However, only web-based formats are included in the mechanism.

Suggestion: let's add wider set of MIME types there. Our particular use case is for video/mp4.

### Upstream changes

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the content-type autodetection logic in src/main/java/com/google/jenkins/plugins/storage/AbstractUpload.java around line 97. Review how extensions are mapped, then broaden the supported MIME types to include the reported video/mp4 case; done means uploads receive the appropriate Content-Type for that extension.

Written by the indexing model from the issue text.

Assessment

Tech stack
google-cloud, java
Domain
cloud
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.