From f7511fce13830351e9a7b8c6cc1e11584284e178 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 15 Mar 2019 11:29:07 -0400 Subject: [PATCH] increase import limits --- src/Api/Controllers/CiphersController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Api/Controllers/CiphersController.cs b/src/Api/Controllers/CiphersController.cs index 7b85beae98..a72a2da5df 100644 --- a/src/Api/Controllers/CiphersController.cs +++ b/src/Api/Controllers/CiphersController.cs @@ -219,7 +219,7 @@ namespace Bit.Api.Controllers public async Task PostImport([FromBody]ImportCiphersRequestModel model) { if(!_globalSettings.SelfHosted && - (model.Ciphers.Count() > 5000 || model.FolderRelationships.Count() > 5000 || + (model.Ciphers.Count() > 6000 || model.FolderRelationships.Count() > 6000 || model.Folders.Count() > 1000)) { throw new BadRequestException("You cannot import this much data at once."); @@ -236,7 +236,7 @@ namespace Bit.Api.Controllers [FromBody]ImportOrganizationCiphersRequestModel model) { if(!_globalSettings.SelfHosted && - (model.Ciphers.Count() > 5000 || model.CollectionRelationships.Count() > 5000 || + (model.Ciphers.Count() > 6000 || model.CollectionRelationships.Count() > 12000 || model.Collections.Count() > 1000)) { throw new BadRequestException("You cannot import this much data at once.");