aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/angular/videos
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-03-18 16:44:54 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-03-18 16:44:54 +0100
commit8c9c1942f6b5675cfca802e2f707bef3c217afbf (patch)
treecf86a39e5cda278f29cb6297b90f7ac4ff13dbad /client/angular/videos
parenta4c157519738d89f8a77143b91e92dfd2e70380a (diff)
downloadPeerTube-8c9c1942f6b5675cfca802e2f707bef3c217afbf.tar.gz
PeerTube-8c9c1942f6b5675cfca802e2f707bef3c217afbf.tar.zst
PeerTube-8c9c1942f6b5675cfca802e2f707bef3c217afbf.zip
Change name of fields for add video api
Diffstat (limited to 'client/angular/videos')
-rw-r--r--client/angular/videos/components/add/videos-add.component.html2
-rw-r--r--client/angular/videos/components/add/videos-add.component.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/client/angular/videos/components/add/videos-add.component.html b/client/angular/videos/components/add/videos-add.component.html
index 4252d7abd..7336ad0c0 100644
--- a/client/angular/videos/components/add/videos-add.component.html
+++ b/client/angular/videos/components/add/videos-add.component.html
@@ -15,7 +15,7 @@
15 <div class="form-group"> 15 <div class="form-group">
16 <div class="btn btn-default btn-file"> 16 <div class="btn btn-default btn-file">
17 <span>Select the video...</span> 17 <span>Select the video...</span>
18 <input type="file" name="input_video" id="input_video"> 18 <input type="file" name="videofile" id="videofile">
19 </div> 19 </div>
20 20
21 <span *ngIf="fileToUpload">{{ fileToUpload.name }}</span> 21 <span *ngIf="fileToUpload">{{ fileToUpload.name }}</span>
diff --git a/client/angular/videos/components/add/videos-add.component.ts b/client/angular/videos/components/add/videos-add.component.ts
index 9926aed63..0004cfa20 100644
--- a/client/angular/videos/components/add/videos-add.component.ts
+++ b/client/angular/videos/components/add/videos-add.component.ts
@@ -22,7 +22,7 @@ export class VideosAddComponent implements OnInit {
22 constructor(private _router: Router, private _elementRef: ElementRef) {} 22 constructor(private _router: Router, private _elementRef: ElementRef) {}
23 23
24 ngOnInit() { 24 ngOnInit() {
25 jQuery(this._elementRef.nativeElement).find('#input_video').fileupload({ 25 jQuery(this._elementRef.nativeElement).find('#videofile').fileupload({
26 url: '/api/v1/videos', 26 url: '/api/v1/videos',
27 dataType: 'json', 27 dataType: 'json',
28 singleFileUploads: true, 28 singleFileUploads: true,