🚀 Feature Request: useUploader的handler增加一个参数用于传递额外信息 #799
LoveCoding6
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What problem does the new feature need to solve?
当使用useUploader上传文件时,
const {...} = useUploader(({ file, name }) => API.uploadFile(file, name))如果需要传递一些请求参数时(比如请求头)到API,那么当前好像并不满足。
How should the new features you expect looks like?
实现后的使用方式:
此时在API中定义如下:
在源码
packages\client\src\hooks\uploader\useUploader.ts中修改测试符合预期。How important is it to you?
Can make it easier to develop
Beta Was this translation helpful? Give feedback.
All reactions