title: Looping through formdata in typescript
body: <p>I am trying to loop through formdata, I have read several times that I should be able to use FormData in a for ... of ... loop, however when I try, I get the error:</p>
  
  <pre><code>Type 'FormData' is not an array type or a string type
  </code></pre>
  
  <p>My code:</p>
  
  <pre><code>export class NewsCreationComponent implements OnInit {
  
    fileToUpload: File = null;
    uploadImages = new FormData();
  
  ...
  
    handleFile(event) {
      this.fileToUpload = event.target.files;
      this.uploadImages.append(this.fileToUpload.name, this.fileToUpload);
    }
  
    save() {
      for (let up of this.uploadImages) {
        this.imageService.createImage(up)
        });
  }
  </code></pre>
  
  <p>What am I doing wrong? </p>