Vue example of Upload component removeFiles()

1 Answer 61 Views
Upload
Matthew
Top achievements
Rank 1
Iron
Iron
Matthew asked on 23 Nov 2022, 11:00 PM | edited on 23 Nov 2022, 11:00 PM

Hello,

Am having trouble using the .removeFiles() method of the Vue Upload component.  I was wondering if anyone had an example of this in use or could point to some documentation describing how to use it?  The Vue API documentation for the component doesn't seem to include this functionality.  Is it even supported?  I do see the removeFiles method when inspecting the component using web developer tools.

 

Thanks!

Petar
Telerik team
commented on 24 Nov 2022, 11:52 AM

Hello, Matthew.

The Kendo UI for Vue Native Upload component doesn't have the removeFile method available in the Kendo UI for Vue Wrapper Upload(and the Kendo UI for jQuery Upload). 

The Native Upload component provides other methods that can be used based on your scenario.

I don't know what the requirement you need to implement is but here is an example that demonstrates how we can remove the first file among these selected for upload. Using the demonstrated approach, you can implement a logic that filters the files in the upload list based on the requirements of your application.

I hope the suggested implementation will help you achieve the targeted functionality. If not, you can share more details about what you need.

1 Answer, 1 is accepted

Sort by
0
Matthew
Top achievements
Rank 1
Iron
Iron
answered on 24 Nov 2022, 01:17 PM
Thank you Petar.  Your example was exactly what I needed in order to figure out how to solve my issue.  Very much appreciated.
Petar
Telerik team
commented on 24 Nov 2022, 01:37 PM

You are welcome, Matthew! I am happy I could help you! 

Tags
Upload
Asked by
Matthew
Top achievements
Rank 1
Iron
Iron
Answers by
Matthew
Top achievements
Rank 1
Iron
Iron
Share this question
or