Change name of fields for add video api

This commit is contained in:
Chocobozzz
2016-03-18 16:44:54 +01:00
parent a4c1575197
commit 8c9c1942f6
5 changed files with 13 additions and 13 deletions

View File

@@ -15,7 +15,7 @@
<div class="form-group">
<div class="btn btn-default btn-file">
<span>Select the video...</span>
<input type="file" name="input_video" id="input_video">
<input type="file" name="videofile" id="videofile">
</div>
<span *ngIf="fileToUpload">{{ fileToUpload.name }}</span>

View File

@@ -22,7 +22,7 @@ export class VideosAddComponent implements OnInit {
constructor(private _router: Router, private _elementRef: ElementRef) {}
ngOnInit() {
jQuery(this._elementRef.nativeElement).find('#input_video').fileupload({
jQuery(this._elementRef.nativeElement).find('#videofile').fileupload({
url: '/api/v1/videos',
dataType: 'json',
singleFileUploads: true,