imagekit-developer/imagekit-nodejs

How to stop adding default nonce sring at the filename end

Closed this issue · 1 comments

Hi
When I upload an image imagekit automatically adds a little string to the end of file like
image

How to stop this behavior?

ahnv commented

Hey @minamme

ImageKit Upload API accepts a parameter called useUniqueFileName, you can set this to false to prevent the nonce from getting appended in file name.
You can refer to docs regarding the same https://docs.imagekit.io/api-reference/upload-file-api/server-side-file-upload

Specific to nodejs sdk, you can find the parameters here and here