How do you bind a function to the saveUrl property?

0 Answers 80 Views
Upload
Don
Top achievements
Rank 1
Don asked on 12 May 2023, 01:27 PM

Is there an example demonstrating how to bind a function to the saveUrl property?  It looks like it's supported.  Please see screen shot below.  Ultimately I'm trying to gain full control of the upload process so I can upload files to blob storage.  If there's another way to consume the upload control or use a different control entirely to allow me to do that please advise.

Thank you,

Don

Petar
Telerik team
commented on 15 May 2023, 11:42 AM

Hello, Don. 

I am not 100% sure what your scenario is but you can use a computed property to dynamically change the value of the variable passed to the saveUrl and removeUrl properties.

Here is a StackBlitz example demonstrating what I mean. In this project, if you change the value of the saveText or removeText variables the saveUrl and removeUrl values will be automatically updated. 

Please check the suggested approach and let me know if it helps you achieve what you need.

Don
Top achievements
Rank 1
commented on 15 May 2023, 02:53 PM

I'm trying to find an example that binds a function to the saveUrl property versus a string.  Similar to what I have below.

Petar
Telerik team
commented on 16 May 2023, 12:11 PM

Hi, Don.

Thank you for the additional details about the functionality that you need.

Please check this StackBlitz example and let me know if it helps you achieve the desired functionality. 

Don
Top achievements
Rank 1
commented on 16 May 2023, 02:58 PM

Yup, that's what I needed.  Thanks Petar.
Petar
Telerik team
commented on 17 May 2023, 06:38 AM

You are welcome, Don! I am happy to hear that could help. 

No answers yet. Maybe you can help?

Tags
Upload
Asked by
Don
Top achievements
Rank 1
Share this question
or