You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use DropTarget and FileInput components to build up my own "choose file" button and a dropzone too. This is a TS project.
I did find this question being asked on your forums, but it had no replies. This lead me to delve into the source and find that the @uppy/vuesrc/index.js was missing an export for FileInput.
I was using the DragDrop component but this provides a single button element wrapping all other HTML markup. I am wary this will not be accessible with the Dragon accessibility program i.e. the button text describes multiple actions - "Drag here AND browse". There is no way to split out this text into separate elements in the HTML.
Is there a recommended way to achieve this very minimal and custom UI? Or would I need to create my own functionality similar to what the FileInput plugin currently does e.g. build up my own input type="file" and handle the @change event. Then use the uppyaddFiles method. Allowing the DropTarget to still work and both working from the same uppy state.
The link on your README GitHub 404s for the file-input plugin.
Expected behavior
Access to the library component
Actual behavior
[Vue warn]: Unknown custom element: <FileInput>
The text was updated successfully, but these errors were encountered:
#4736
Created one, I wonder if this is okay.
I directly made changes to the file online, but I couldn't connect to Github locally due to network blocking .
Initial checklist
Link to runnable example
No response
Steps to reproduce
Goal
I would like to use
DropTarget
andFileInput
components to build up my own "choose file" button and a dropzone too. This is a TS project.I did find this question being asked on your forums, but it had no replies. This lead me to delve into the source and find that the
@uppy/vue
src/index.js
was missing an export forFileInput
.I was using the
DragDrop
component but this provides a singlebutton
element wrapping all other HTML markup. I am wary this will not be accessible with the Dragon accessibility program i.e. the button text describes multiple actions - "Drag here AND browse". There is no way to split out this text into separate elements in the HTML.Is there a recommended way to achieve this very minimal and custom UI? Or would I need to create my own functionality similar to what the
FileInput
plugin currently does e.g. build up my owninput type="file"
and handle the@change
event. Then use theuppy
addFiles
method. Allowing theDropTarget
to still work and both working from the sameuppy
state.The link on your README GitHub 404s for the
file-input
plugin.Expected behavior
Access to the library component
Actual behavior
[Vue warn]: Unknown custom element: <FileInput>
The text was updated successfully, but these errors were encountered: