Skip to content

Commit

Permalink
Merge pull request DSpace#2311 from 4Science/DURACOM-157
Browse files Browse the repository at this point in the history
Multiple uploaders in the same page don't work
  • Loading branch information
tdonohue committed Jun 16, 2023
2 parents 3785729 + 4c6cae9 commit e9b18d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/shared/upload/uploader/uploader.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
<span>
<i class="fas fa-upload" aria-hidden="true"></i>
{{dropMsg | translate}}{{'uploader.or' | translate}}
<label for="inputFileUploader" class="btn btn-link m-0 p-0 ml-1" tabindex="0" (keyup.enter)="$event.stopImmediatePropagation(); fileInput.click()">
<label for="inputFileUploader-{{uploaderId}}" class="btn btn-link m-0 p-0 ml-1" tabindex="0" (keyup.enter)="$event.stopImmediatePropagation(); fileInput.click()">
<span role="button" [attr.aria-label]="'uploader.browse' | translate">{{'uploader.browse' | translate}}</span>
</label>
<input #fileInput id="inputFileUploader" class="d-none" type="file" ng2FileSelect [uploader]="uploader" multiple tabindex="0" />
<input #fileInput id="inputFileUploader-{{uploaderId}}" class="d-none" type="file" ng2FileSelect [uploader]="uploader" multiple tabindex="0" />
</span>
</div>
<div *ngIf="(isOverBaseDropZone | async) || uploader?.queue?.length !== 0">
Expand Down

0 comments on commit e9b18d8

Please sign in to comment.