Skip to content

feat: Add file removal button to file input#288

Open
SilverSupplier wants to merge 1 commit intoiib0011:mainfrom
SilverSupplier:main
Open

feat: Add file removal button to file input#288
SilverSupplier wants to merge 1 commit intoiib0011:mainfrom
SilverSupplier:main

Conversation

@SilverSupplier
Copy link

Related Issue

Fixes #282

Description

  • Added a "Clear" button to the file upload component () to allow users to remove an uploaded file.
  • Implemented a function in to reset the file state.
  • Included , which was generated after running pnpm install to set up the development environment.

How to Test

  1. Navigate to a tool page that requires a file upload (e.g., Image Converter).
  2. Upload a file.
  3. Verify that the "Clear" button appears below the file preview.
  4. Click the "Clear" button and verify that the file preview disappears and the upload area returns to its initial state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement] No option to remove uploaded file

1 participant