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 request]限制上传文件的格式 #328

Closed
colynyu opened this issue Oct 9, 2022 · 2 comments
Closed

[Feature request]限制上传文件的格式 #328

colynyu opened this issue Oct 9, 2022 · 2 comments
Labels
🚀enhancement New feature or request

Comments

@colynyu
Copy link

colynyu commented Oct 9, 2022

上传媒体文件功能,目前所有类型文件都能选中,希望能限制一下对应的格式,比如图片就只有image/*
或者说,提供钩子函数,自定义处理。

@sunsonliu
Copy link
Collaborator

有道理,正好最近要扩展上传文件的回调函数(支持上传视频的时候设置封面),到时候一起改下

@sunsonliu
Copy link
Collaborator

https://github.com/Tencent/cherry-markdown/blob/dev/src/Cherry.config.js#LC244
已增加配置项(已提交到dev分支)

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

No branches or pull requests

2 participants