Skip to content

[Feature Request] [el-upload] create file URL after before Upload #13771

@Senasiko

Description

@Senasiko

Existing Component

Component Name

el-upload

Description

如果默认的 listType 为 '',然后在 beforeUpload 回调里通过 file.type 修改 listType,此时并不会生成 file url。

现在 upload 组件的上传流程为 [upload.vue].uploadFiles -> [index.vue].handleStart -> [upload.vue].upload -> [index.vue].beforeUpload
是否创建 file url 是在 [index.vue].handleStart 中通过 listType 判断的,然而组件外在 [index.vue].beforeUpload 才会首次拿到 file 对象。
故希望在 beforeUpload 回调之后创建 file url,或者有更好的方案,谢谢。

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions