halo-dev / halo

强大易用的开源建站工具。
https://www.halo.run
GNU General Public License v3.0
33.3k stars 9.61k forks source link

fix: correct file mime type validation parameter to restore functionality #6673

Open guqing opened 2 days ago

guqing commented 2 days ago

What type of PR is this?

/kind bug /area core /milestone 2.20.x

What this PR does / why we need it:

修复文件上传时类型校验失效的问题

此问题由 #6390 导致

Does this PR introduce a user-facing change?

修复文件上传时类型校验失效的问题
f2c-ci-robot[bot] commented 2 days ago

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please ask for approval from guqing. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files: - **[OWNERS](https://github.com/halo-dev/halo/blob/main/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
sonarcloud[bot] commented 2 days ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

codecov[bot] commented 2 days ago

Codecov Report

Attention: Patch coverage is 0% with 12 lines in your changes missing coverage. Please review.

Project coverage is 58.08%. Comparing base (6cd8dc8) to head (dc33187). Report is 80 commits behind head on main.

Files with missing lines Patch % Lines
...achment/endpoint/LocalAttachmentUploadHandler.java 0.00% 12 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #6673 +/- ## ============================================ - Coverage 58.18% 58.08% -0.10% - Complexity 3774 3925 +151 ============================================ Files 651 674 +23 Lines 22125 23068 +943 Branches 1538 1574 +36 ============================================ + Hits 12873 13400 +527 - Misses 8641 9048 +407 - Partials 611 620 +9 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.