imagekit-java icon indicating copy to clipboard operation
imagekit-java copied to clipboard

Unable to set `overwriteFile` to `false`

Open tanin47 opened this issue 1 year ago • 0 comments

I think there's a bug in this part:

https://github.com/imagekit-developer/imagekit-java/blob/48e94f18a0e83c6d914d90d9143c3ceb40574715/imagekit-sdk/src/main/java/io/imagekit/sdk/tasks/MultipartBuilder.java#L58

We can't set overwriteFile to false, and the default value of overwriteFile is true.

image

Therefore, there's no way to set overwriteFile to false.

FYI, useUniqueFilename has a different and correct logic. It seems other flags also have buggy logic around this part i.e. can't set to false and the default isn't false.

Thank you.

tanin47 avatar Nov 21 '24 19:11 tanin47