From d62d4e73c30101341e311eb1f2807ccbea9f5b77 Mon Sep 17 00:00:00 2001 From: "Michael W. Kearney" Date: Tue, 19 Oct 2021 15:57:44 -0500 Subject: [PATCH] Add condition on multipart msg in put_object --- R/put_object.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/put_object.R b/R/put_object.R index e506bdf..3b241f3 100644 --- a/R/put_object.R +++ b/R/put_object.R @@ -246,7 +246,7 @@ function( return(TRUE) } - if (!is.na(size) && size > partsize) + if (!is.na(size) && size > partsize && isFALSE(multipart)) message("File size is ", size, ", consider setting using multipart=TRUE") ## httr doesn't support connections so we have to read it all into memory first