fix(upload): preview can't show image when the image file use uppercase extension. #10928
Conversation
…e extension 1.fix: upload preview can't show image when the image file use uppercase extension. 2.improve: remove unnecessary escape character.
Deploy preview for ant-design ready! Built with commit f614668 |
Codecov Report
@@ Coverage Diff @@
## master #10928 +/- ##
=======================================
Coverage 91.59% 91.59%
=======================================
Files 194 194
Lines 4769 4769
Branches 1329 1329
=======================================
Hits 4368 4368
Misses 397 397
Partials 4 4
Continue to review full report at Codecov.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
First of all, thank you for your contribution! :-)
Please makes sure that these checkboxes are checked before submitting your PR, thank you!
master
, feature for latest active branchfeature-x.x
.npm run lint
and fix those errors before submitting in order to keep consistent code style.Upload preview can't show image when the image file use uppercase extension, like
.JPG
This pr fix it, and remove unnecessary escape character in function
extname
.