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 | 4 |
1 files changed, 3 insertions, 1 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 a86d9d3c2..d0d17fa86 100644 --- a/client/src/app/videos/+video-edit/video-add.component.ts +++ b/client/src/app/videos/+video-edit/video-add.component.ts | |||
@@ -95,8 +95,10 @@ export class VideoAddComponent extends FormReactive implements OnInit { | |||
95 | 95 | ||
96 | uploadFirstStep () { | 96 | uploadFirstStep () { |
97 | const videofile = this.videofileInput.nativeElement.files[0] | 97 | const videofile = this.videofileInput.nativeElement.files[0] |
98 | if (!videofile) return | ||
99 | |||
98 | const videoQuota = this.authService.getUser().videoQuota | 100 | const videoQuota = this.authService.getUser().videoQuota |
99 | if ((this.userVideoQuotaUsed + videofile.size) > videoQuota) { | 101 | if (videoQuota !== -1 && (this.userVideoQuotaUsed + videofile.size) > videoQuota) { |
100 | const bytePipes = new BytesPipe() | 102 | const bytePipes = new BytesPipe() |
101 | 103 | ||
102 | const msg = 'Your video quota is exceeded with this video ' + | 104 | const msg = 'Your video quota is exceeded with this video ' + |