mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
97fd42a2e1
commit
926abe6241
@@ -147,10 +147,10 @@ export class UploaderComponent {
|
||||
// Ensure the behalf header is set if impersonating
|
||||
this.uploader.options.headers = [
|
||||
{ name: XSRF_REQUEST_HEADER, value: this.tokenExtractor.getToken() },
|
||||
...(hasValue(this.uploadFilesOptions.impersonatingID)
|
||||
? [{ name: this.ON_BEHALF_HEADER, value: this.uploadFilesOptions.impersonatingID }]
|
||||
: [])
|
||||
];
|
||||
if (hasValue(this.uploadFilesOptions.impersonatingID)) {
|
||||
this.uploader.options.headers.push({ name: this.ON_BEHALF_HEADER, value: this.uploadFilesOptions.impersonatingID });
|
||||
}
|
||||
this.onBeforeUpload();
|
||||
this.isOverDocumentDropZone = observableOf(false);
|
||||
};
|
||||
|
Reference in New Issue
Block a user