Hi Team,
I am using primeng p-fileupload to upload files . I need to send Authorization token to validate the call at server side. i tried to add token in onBeforeUpload, but it's not working.
below is the code that i tried.
BeforeUpload(event) {
event.formData.append('noteId', this.noteId);
event.xhr.setRequestHeader("Authorization", "Bearer " + sessionStorage.getItem("AccessToken"));
}
I'm able to get noteId ,but it's not working in case of authorization token.
Can you please help me regarding this.
Regards,
Ajit Singh
Unable to send authorization token in fileupload call
-
- Information
-
Who is online
Users browsing this forum: No registered users and 22 guests