Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature:图片上传,没有校验 #57

Closed
1 task done
wcqftd opened this issue Dec 22, 2021 · 1 comment · Fixed by #102
Closed
1 task done

Feature:图片上传,没有校验 #57

wcqftd opened this issue Dec 22, 2021 · 1 comment · Fixed by #102
Labels
enhancement New feature or request work in progress

Comments

@wcqftd
Copy link

wcqftd commented Dec 22, 2021

Is your feature request related to a problem? Please describe.

need

Description

图片上传,尺寸校验,图片大小校验没有

Describe the solution you'd like

--

Describe alternatives you've considered

No response

Self-service

  • I'd be willing to contribute this feature to DripForm myself.
@wcqftd wcqftd added awaiting-approval enhancement New feature or request labels Dec 22, 2021
@mengshang918
Copy link
Collaborator

校验方案有以下两种:

  1. jsonSchema中定义dimension、size关键字

  2. uiprop中定义dimension、size属性
    beforeupload中校验
    问题是如何配置错误信息🤔️

总结:目前来说,方案一添加jsonSchema关键字来校验uploader这种特殊类型的是不合适的,最终采用方案二。方案二目前自动根据dimension、size配置生成错误文案,后续需要确认是否存在自定义错误文案场景

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request work in progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants