Browse Source

Using multipart uploads with S3 protocol on Google Cloud as it is supported there now

Undoing Bug 1972:
https://winscp.net/tracker/1972

(cherry picked from commit b8f51b493594f07d2a69ba177123da555c07d2f4)

Source commit: 2825a2435f2649ecfe6ece3da9e415bf8ffba4dd
Martin Prikryl 4 năm trước cách đây
mục cha
commit
65311f206b
1 tập tin đã thay đổi với 0 bổ sung6 xóa
  1. 0 6
      source/core/S3FileSystem.cpp

+ 0 - 6
source/core/S3FileSystem.cpp

@@ -1485,12 +1485,6 @@ void __fastcall TS3FileSystem::Source(
   int ChunkSize = std::max(S3MinMultiPartChunkSize, static_cast<int>((Handle.Size + Parts - 1) / Parts));
   int ChunkSize = std::max(S3MinMultiPartChunkSize, static_cast<int>((Handle.Size + Parts - 1) / Parts));
   DebugAssert((ChunkSize == S3MinMultiPartChunkSize) || (Handle.Size > static_cast<__int64>(S3MaxMultiPartChunks) * S3MinMultiPartChunkSize));
   DebugAssert((ChunkSize == S3MinMultiPartChunkSize) || (Handle.Size > static_cast<__int64>(S3MaxMultiPartChunks) * S3MinMultiPartChunkSize));
 
 
-  if ((Parts > 1) && IsGoogleCloud())
-  {
-    FTerminal->LogEvent(L"Cannot use multipart upload with Google Cloud.");
-    Parts = 1;
-  }
-
   bool Multipart = (Parts > 1);
   bool Multipart = (Parts > 1);
 
 
   RawByteString MultipartUploadId;
   RawByteString MultipartUploadId;