From 34b19192901b0f872c72ce8d94a69aeba51d1c29 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 29 Jun 2018 15:47:15 +0200 Subject: Increase upload limit to 8GB (test) --- client/src/app/videos/+video-edit/video-add.component.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'client') 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 9fe121371..7c4b6260b 100644 --- a/client/src/app/videos/+video-edit/video-add.component.ts +++ b/client/src/app/videos/+video-edit/video-add.component.ts @@ -131,11 +131,11 @@ export class VideoAddComponent extends FormReactive implements OnInit, OnDestroy const videofile = this.videofileInput.nativeElement.files[0] as File if (!videofile) return - // Cannot upload videos > 4GB for now - // if (videofile.size > 4 * 1024 * 1024 * 1024) { - // this.notificationsService.error(this.i18n('Error'), this.i18n('We are sorry but PeerTube cannot handle videos > 4GB')) - // return - // } + // Cannot upload videos > 8GB for now + if (videofile.size > 8 * 1024 * 1024 * 1024) { + this.notificationsService.error(this.i18n('Error'), this.i18n('We are sorry but PeerTube cannot handle videos > 8GB')) + return + } const videoQuota = this.authService.getUser().videoQuota if (videoQuota !== -1 && (this.userVideoQuotaUsed + videofile.size) > videoQuota) { -- cgit v1.2.3