ElemeFE / ElemeFE/element

[Feature Request] El-upload replace when limit exceeded

Open
#17,991 3 comments 12 reactions 0 assignees View on GitHub
stale
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Existing Component
Yes

### Component Name
el-upload

### Description
Hi,

Not sure if this is a feature request, but it's def not a bug. This is my case:

Users should be able to upload only 1 file, but when they choose a new file (so exceed the limit) I want the new file to replace the old one (which is very common with upload fields). However, I cannot seem to get that working. My code:

```


{{ $t('chooseFile') }}


{{ $t('uploadOneFile') }}


```

Thank you for helping.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.