79263936

Date: 2024-12-09 05:44:24
Score: 0.5
Natty:
Report link

The files of the file upload are avaiable at _files property instead of files. This should show the values.

  <ng-template pTemplate="content">
    <ul *ngIf="uploader.files">
      <li *ngFor="let file of uploader._files"> <!--  changed here! -->
        <img
          src="/assets/images/pdfimage.png"
        />
        {{ file.name }}
      </li>
    </ul>
  </ng-template>

Related Answers with Working Examples:

In the (onRemove) function of a p-fileUpload, is it possible to get a list of the remaining files?

https://stackoverflow.com/questions/79246000/in-the-onremove-function-of-a-p-fileupload-is-it-possible-to-get-a-list-of-th

Reasons:
  • Blacklisted phrase (1): is it possible to
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Has code block (-0.5):
  • High reputation (-2):
Posted by: Naren Murali