2.1.0 版本富文本编辑器上传本地图片报错,代码和之前的一样,只是升级amis的jssdk
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 18.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
上传图片成功后,返回报错:
Error: Errors: Failed path: (data > src) Could not find valid required value for "value" in { "meta": {} } Input object: { "src": { "meta": {} }, "alt": "", "dimensions": { "width": "", "height": "" }, "fileinput": [ {} ]
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing local-image upload in the rich-text editor on version 2.1.0 after the amis JS SDK upgrade, using the reported error as the symptom. Compare the upload behavior with the previous SDK version and identify where the returned image data becomes {"meta":{}}. Done means a successful upload no longer produces the reported validation error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100