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

Upload component [input file type] not reading "input-props" #2204

Closed
vicenterusso opened this issue Jan 17, 2022 · 7 comments
Closed

Upload component [input file type] not reading "input-props" #2204

vicenterusso opened this issue Jan 17, 2022 · 7 comments
Labels
untriaged need to sort

Comments

@vicenterusso
Copy link
Contributor

TuSimple/naive-ui version (版本)

2.24.1

Vue version (Vue 版本)

3.2.26

Browser and its version (浏览器及其版本)

Version 1.34.80 Chromium: 97.0.4692.71 (Official Build) (64-bit)

System and its version (系统及其版本)

Linux Kubuntu 21.04

Node version (Node 版本)

Reappearance link (重现链接)

https://codesandbox.io/s/vu3-naive-input-props-input-file-plei9

Reappearance steps (重现步骤)

Just open the link and check generated input "name" attributes

Expected results (期望的结果)

Expected to have "name" attribute to file input

Actual results (实际的结果)

Currently the "name" attribute is not being generated

Remarks (补充说明)

@github-actions github-actions bot added the untriaged need to sort label Jan 17, 2022
@Talljack
Copy link
Contributor

This file input is hidden, why do you need to set attributes?

@vicenterusso
Copy link
Contributor Author

This file input is hidden, why do you need to set attributes?

Sometimes is needed to send files in standard way, not async

@OrbisK
Copy link
Collaborator

OrbisK commented Jan 18, 2022

why is prop name not working tho?

it might be replaced by input-props in the furture!

@Talljack
Copy link
Contributor

yeah, you can use name prop to do it.

@OrbisK
Copy link
Collaborator

OrbisK commented Jan 20, 2022

@Talljack sure, but i guess this is currently not working

@Talljack
Copy link
Contributor

@Talljack sure, but i guess this is currently not working

okay, i will check

@07akioni
Copy link
Collaborator

name is not input element's data, but the upload FormData's value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged need to sort
Projects
None yet
Development

No branches or pull requests

4 participants