title: Upload file with Primeng upload component
body: <p>I would upload the file in Angular using <a href="https://www.primefaces.org/primeng/#/fileupload" rel="noreferrer">upload component</a></p>
  
  <p><strong>Here's my HTML:</strong></p>
  
  <pre><code>&lt;p-fileUpload mode="basic" name="demo[]" customUpload="true" accept="image/*" maxFileSize="1000000"  (uploadHandler)="upload($event)"&gt;&lt;/p-fileUpload&gt;
  </code></pre>
  
  <p>in my <strong>ts</strong> I print param value</p>
  
  <pre><code>upload(event) {
    console.log(event)
  }
  </code></pre>
  
  <p>I get only metadata and not blob content</p>
  
  <pre><code>{"files":[{"objectURL":{"changingThisBreaksApplicationSecurity":"blob:https://prime-ng-file-uploading.stackblitz.io/d429e761-c391-45fa-8628-39b603e25225"}}]}
  </code></pre>
  
  <p>I would also get file content to send via API to the server</p>
  
  <p><a href="https://stackblitz.com/edit/prime-ng-file-uploading?file=src/app/app.component.ts" rel="noreferrer">Here's a stackblitz demo</a></p>