aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-06-29 15:47:15 +0200
committerChocobozzz <me@florianbigard.com>2018-06-29 17:10:53 +0200
commit34b19192901b0f872c72ce8d94a69aeba51d1c29 (patch)
tree1b0a6749eab0ad40ccbb9889ce7d6be9650eaa20 /client/src/app/videos
parente1807a942f08e44775a25c0d0544cc322955466b (diff)
downloadPeerTube-34b19192901b0f872c72ce8d94a69aeba51d1c29.tar.gz
PeerTube-34b19192901b0f872c72ce8d94a69aeba51d1c29.tar.zst
PeerTube-34b19192901b0f872c72ce8d94a69aeba51d1c29.zip
Increase upload limit to 8GB (test)
Diffstat (limited to 'client/src/app/videos')
-rw-r--r--client/src/app/videos/+video-edit/video-add.component.ts10
1 files changed, 5 insertions, 5 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 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
131 const videofile = this.videofileInput.nativeElement.files[0] as File 131 const videofile = this.videofileInput.nativeElement.files[0] as File
132 if (!videofile) return 132 if (!videofile) return
133 133
134 // Cannot upload videos > 4GB for now 134 // Cannot upload videos > 8GB for now
135 // if (videofile.size > 4 * 1024 * 1024 * 1024) { 135 if (videofile.size > 8 * 1024 * 1024 * 1024) {
136 // this.notificationsService.error(this.i18n('Error'), this.i18n('We are sorry but PeerTube cannot handle videos > 4GB')) 136 this.notificationsService.error(this.i18n('Error'), this.i18n('We are sorry but PeerTube cannot handle videos > 8GB'))
137 // return 137 return
138 // } 138 }
139 139
140 const videoQuota = this.authService.getUser().videoQuota 140 const videoQuota = this.authService.getUser().videoQuota
141 if (videoQuota !== -1 && (this.userVideoQuotaUsed + videofile.size) > videoQuota) { 141 if (videoQuota !== -1 && (this.userVideoQuotaUsed + videofile.size) > videoQuota) {