This is a migrated thread and some comments may be shown as answers.

How do I include a bearer/access token?

3 Answers 690 Views
Upload
This is a migrated thread and some comments may be shown as answers.
SL
Top achievements
Rank 1
Veteran
SL asked on 13 May 2020, 03:03 PM

I'm testing the Upload component and I'm using bearer tokens on my APIs.  How do I include the bearer token in the TelerikUpload component?

 

Thanks.

3 Answers, 1 is accepted

Sort by
0
Accepted
SL
Top achievements
Rank 1
Veteran
answered on 13 May 2020, 03:06 PM

Oops, I found the events doc so I'm going to try it first.

 

https://docs.telerik.com/blazor-ui/components/upload/events

 

0
SL
Top achievements
Rank 1
Veteran
answered on 13 May 2020, 03:35 PM

Okay, this warrants a question.  The UploadHandler works when attaching auth tokens.

 

Howerver, clicking the retry icon when the upload fails does not fire the UploadHandler so no auth tokens is getting sent to the server.  Is there another event where the retry should be handled?

0
Marin Bratanov
Telerik team
answered on 13 May 2020, 04:43 PM

Hi,

I made the following public page where you can Follow a fix for this issue: https://feedback.telerik.com/blazor/1465957-the-retry-button-does-not-fire-onupload-and-you-can-t-attach-auth-tokens.

 

Regards,
Marin Bratanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Upload
Asked by
SL
Top achievements
Rank 1
Veteran
Answers by
SL
Top achievements
Rank 1
Veteran
Marin Bratanov
Telerik team
Share this question
or