onFileSelected(event: any): void {
    this.filesToUpload = [...this.filesToUpload, ...<Array<File>>event.target.files];
    console.log(this.filesToUpload)
  }

  onDragOver(event: DragEvent): void {
    event.preventDefault();
  }

  onDrop(event: DragEvent): void {
    event.preventDefault();
    const files = event.dataTransfer?.files;
    if (files) {
      this.filesToUpload = [...this.filesToUpload, ...Array.from(files)];
      console.log(this.filesToUpload);
    }
  }