feat: block upload file replace other system file
This commit is contained in:
parent
fb70e5174a
commit
b100da112d
4 changed files with 12 additions and 19 deletions
|
|
@ -10,7 +10,7 @@ const props = withDefaults(
|
|||
defineProps<{
|
||||
open: boolean
|
||||
error: {
|
||||
fileExistMetadata?: boolean
|
||||
externalFileExist?: boolean
|
||||
fileExist?: boolean
|
||||
fileName2Long?: boolean
|
||||
}
|
||||
|
|
@ -189,12 +189,12 @@ const file = ref<File | undefined>()
|
|||
: 'เลือกไฟล์'
|
||||
"
|
||||
:error="
|
||||
!!error.fileExistMetadata ||
|
||||
!!error.externalFileExist ||
|
||||
!!error.fileExist ||
|
||||
!!error.fileName2Long
|
||||
"
|
||||
:error-message="
|
||||
error.fileExistMetadata
|
||||
error.externalFileExist
|
||||
? 'พบไฟล์ชื่อซ้ำในระบบอื่น'
|
||||
: error.fileExist
|
||||
? 'พบไฟล์ชื่อซ้ำในระบบ ไฟล์ชื่อนี้ภายในระบบจะถูกเขียนทับ'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue