|
@@ -96,10 +96,6 @@ class S3BlobContainer extends AbstractBlobContainer {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public void writeBlob(String blobName, InputStream inputStream, long blobSize) throws IOException {
|
|
public void writeBlob(String blobName, InputStream inputStream, long blobSize) throws IOException {
|
|
- if (blobExists(blobName)) {
|
|
|
|
- throw new FileAlreadyExistsException("Blob [" + blobName + "] already exists, cannot overwrite");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
SocketAccess.doPrivilegedIOException(() -> {
|
|
SocketAccess.doPrivilegedIOException(() -> {
|
|
if (blobSize <= blobStore.bufferSizeInBytes()) {
|
|
if (blobSize <= blobStore.bufferSizeInBytes()) {
|
|
executeSingleUpload(blobStore, buildKey(blobName), inputStream, blobSize);
|
|
executeSingleUpload(blobStore, buildKey(blobName), inputStream, blobSize);
|