|
|
|
|
@ -80,7 +80,6 @@ namespace Bit.Core.Services
@@ -80,7 +80,6 @@ namespace Bit.Core.Services
|
|
|
|
|
throw new BadRequestException("No file data."); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
var storageBytesRemaining = 0L; |
|
|
|
|
if (send.UserId.HasValue) |
|
|
|
|
{ |
|
|
|
|
@ -117,7 +116,6 @@ namespace Bit.Core.Services
@@ -117,7 +116,6 @@ namespace Bit.Core.Services
|
|
|
|
|
{ |
|
|
|
|
throw new BadRequestException("Not enough storage available."); |
|
|
|
|
} |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
var fileId = Utilities.CoreHelpers.SecureRandomString(32, upper: false, special: false); |
|
|
|
|
await _sendFileStorageService.UploadNewFileAsync(stream, send, fileId); |
|
|
|
|
|