diff --git a/src/main/java/com/contentstack/cms/stack/FileUploader.java b/src/main/java/com/contentstack/cms/stack/FileUploader.java index 5fe3bb9f..bdfc65bb 100644 --- a/src/main/java/com/contentstack/cms/stack/FileUploader.java +++ b/src/main/java/com/contentstack/cms/stack/FileUploader.java @@ -29,13 +29,13 @@ public MultipartBody createMultipartBody(String filePath, String parentUid, Stri } //Adding additional parameters - if (parentUid != null && !parentUid.isBlank()) { + if (parentUid != null) { builder.addFormDataPart("asset[parent_uid]", parentUid); } - if (title != null && !title.isBlank()) { + if (title != null ) { builder.addFormDataPart("asset[title]", title); } - if (description != null && !description.isBlank()) { + if (description != null) { builder.addFormDataPart("asset[description]", description); } if (tags != null && tags.length > 0) {