mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Change name of fields for add video api
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user