diff options
Diffstat (limited to 'client/src/app/videos/+video-edit/video-add.component.ts')
-rw-r--r-- | client/src/app/videos/+video-edit/video-add.component.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/src/app/videos/+video-edit/video-add.component.ts b/client/src/app/videos/+video-edit/video-add.component.ts index 75d608162..e81243d3e 100644 --- a/client/src/app/videos/+video-edit/video-add.component.ts +++ b/client/src/app/videos/+video-edit/video-add.component.ts | |||
@@ -37,6 +37,7 @@ export class VideoAddComponent extends FormReactive implements OnInit, OnDestroy | |||
37 | id: 0, | 37 | id: 0, |
38 | uuid: '' | 38 | uuid: '' |
39 | } | 39 | } |
40 | videoFileName: string | ||
40 | 41 | ||
41 | form: FormGroup | 42 | form: FormGroup |
42 | formErrors: { [ id: string ]: string } = {} | 43 | formErrors: { [ id: string ]: string } = {} |
@@ -147,6 +148,8 @@ export class VideoAddComponent extends FormReactive implements OnInit, OnDestroy | |||
147 | return | 148 | return |
148 | } | 149 | } |
149 | 150 | ||
151 | this.videoFileName = videofile.name | ||
152 | |||
150 | const name = videofile.name.replace(/\.[^/.]+$/, '') | 153 | const name = videofile.name.replace(/\.[^/.]+$/, '') |
151 | const privacy = this.firstStepPrivacyId.toString() | 154 | const privacy = this.firstStepPrivacyId.toString() |
152 | const nsfw = false | 155 | const nsfw = false |