primereact icon indicating copy to clipboard operation
primereact copied to clipboard

FileUpload: Ability to remove file in basic mode

Open franmc01 opened this issue 3 years ago • 6 comments

Describe the feature you would like to see added

I consider that this component in its basic version should have the action of being able to delete the element that has been selected, since it is quite probable that one selects an element by mistake and if he clicks the button again, this is what it does is to fire the upload action. Ideally, if I use the basic version of this component, the user also has the possibility to delete the element in case he made a mistake.

Is your feature request related to a problem?

I want to only use the basic version of the FileUpload Component, it cannot cancel or delete the selected element if I have made a mistake when selecting it.

Describe the solution you'd like

That a button on the left side be added to cancel, like the one that is displayed when one chooses the advanced version to be able to delete the file that you select, or an event that allows you to control that.

franmc01 avatar Jun 15 '22 23:06 franmc01

English only please. Will close for now and re-open if translated into English.

melloware avatar Jun 16 '22 12:06 melloware

I'm sorry, now it's in English :)

franmc01 avatar Jun 16 '22 12:06 franmc01

Is it solved?

flash4174 avatar Nov 14 '23 12:11 flash4174

Nope ticket is still open....

melloware avatar Nov 14 '23 12:11 melloware

Hey @melloware, could you take a look at this? It's me again 👨‍💻 https://github.com/primefaces/primereact/pull/7071

franmc01 avatar Aug 22 '24 05:08 franmc01

Assigned to PrimeTek to review.

melloware avatar Aug 23 '24 13:08 melloware