Fix API /api/asset/upload
response body succMap
field
#12361
Merged
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.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
稳定 API
/api/asset/upload
在 #12255 中引入了破坏性变更Stable API
/api/asset/upload
introduced a breaking change in #12255响应体中
succMap
对象的字段名在部分情况下均会被错误得替换为实际保存的文件名, 导致 API 的调用者无法获取原文件名到新文件名的映射In some cases, the field name and field value of the
succMap
object in the response body will be incorrectly replaced with the actual saved file name, causing the caller of the API to be unable to get the mapping from the original file name to the new file name.同时造成该 API 的行为与文档不一致
It also causes the API to behave inconsistently with the documentation.
已经过测试
TESTED