title: How to save uploaded file using primeng fileupload?
body: <p>I'm trying to use primeng fileupload. But I'm not able to find out how to save the uploaded image on some given path. I get <code>uploadedFiles</code> object but I'm not able to save the file to a given path.</p>
  
  <pre><code>&lt;p-fileUpload multiple="multiple"
                                    name="DefaultFileUploadFileInput[]"
                                    [url]="uploadUrl"
                                    accept="image/*"
                                    maxFileSize="1000000"
                                    (onUpload)="onUpload($event)"&gt;
  
                          &lt;ng-template pTemplate="content"&gt;
                              &lt;ul *ngIf="uploadedFiles.length"&gt;
                                  &lt;li *ngFor="let file of uploadedFiles"&gt;{{file.name}} - {{file.size}} bytes&lt;/li&gt;
                              &lt;/ul&gt;
                          &lt;/ng-template&gt;
                      &lt;/p-fileUpload&gt;
  </code></pre>
  
  <p>Angular Code:</p>
  
  <pre><code>uploadUrl: string;
  uploadedFiles: any[] = [];
  
      constructor(
          injector: Injector,
          private demoUiComponentsService: DemoUiComponentsServiceProxy
      ) {
          super(injector);
          this.uploadUrl = AppConsts.remoteServiceBaseUrl + '/DemoUiComponents/UploadFiles';
      }
  
      // upload completed event
      onUpload(event): void {
          for (let file of event.files) {
              this.uploadedFiles.push(file);
          }
      };
  </code></pre>