aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/app/videos/video-add
diff options
context:
space:
mode:
Diffstat (limited to 'client/app/videos/video-add')
-rw-r--r--client/app/videos/video-add/video-add.component.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/app/videos/video-add/video-add.component.ts b/client/app/videos/video-add/video-add.component.ts
index b11475ae9..eb10aedeb 100644
--- a/client/app/videos/video-add/video-add.component.ts
+++ b/client/app/videos/video-add/video-add.component.ts
@@ -25,9 +25,9 @@ export class VideoAddComponent implements OnInit {
25 private form: any; 25 private form: any;
26 26
27 constructor( 27 constructor(
28 private router: Router, 28 private authService: AuthService,
29 private elementRef: ElementRef, 29 private elementRef: ElementRef,
30 private authService: AuthService 30 private router: Router
31 ) {} 31 ) {}
32 32
33 ngOnInit() { 33 ngOnInit() {
@@ -62,8 +62,8 @@ export class VideoAddComponent implements OnInit {
62 } 62 }
63 63
64 uploadFile() { 64 uploadFile() {
65 this.form.headers = this.authService.getRequestHeader().toJSON();
66 this.form.formData = jQuery(this.elementRef.nativeElement).find('form').serializeArray(); 65 this.form.formData = jQuery(this.elementRef.nativeElement).find('form').serializeArray();
66 this.form.headers = this.authService.getRequestHeader().toJSON();
67 this.form.submit(); 67 this.form.submit();
68 } 68 }
69} 69}