X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fimages%2Fpreview-upload.component.ts;h=85a2173e91bb3785bf8843f5b18edc3f5e09b9e1;hb=be27ef3b4682c5639039474c39ee0d234d16f482;hp=f56f5b1f81db215839faf11cb3151a8bea6a9bb1;hpb=361dcebc75dea74947b6c3aafd9d7d720c054b01;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/images/preview-upload.component.ts b/client/src/app/shared/images/preview-upload.component.ts index f56f5b1f8..85a2173e9 100644 --- a/client/src/app/shared/images/preview-upload.component.ts +++ b/client/src/app/shared/images/preview-upload.component.ts @@ -26,7 +26,7 @@ export class PreviewUploadComponent implements OnInit, ControlValueAccessor { allowedExtensionsMessage = '' private serverConfig: ServerConfig - private file: File + private file: Blob constructor ( private sanitizer: DomSanitizer, @@ -49,7 +49,7 @@ export class PreviewUploadComponent implements OnInit, ControlValueAccessor { this.allowedExtensionsMessage = this.videoImageExtensions.join(', ') } - onFileChanged (file: File) { + onFileChanged (file: Blob) { this.file = file this.propagateChange(this.file)