How to trigger upload from external button element

Open
#379 2 comments 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
react, typescript
Domain
frontend

Research direction

The issue names no file, test, or entry point. Start by inspecting the Upload component's public API and existing usage guidance to determine whether an external button can trigger the dialog. Done should be a confirmed supported usage path or a clearly scoped feature with a verification example.

Written by the indexing model from the issue text.

Description

I would like to trigger the open dialog from a standalone button element by example

<Button variant="secondary" onClick={handleOpenUploadDialog}>

Did someone know how to do that ?

Thanks!

Dominant language
TypeScript
Stars
804
Forks
323
Avg merge
12m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from react-component/upload

All issues in react-component/upload

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.