Unique filenames setting not working

We use FTP to upload files to our TMS.
We discovered recently that the FTP upload is not honoring the option to use unique names and not overwrite existing files.
This can be very deadly in transportation when you also have to deal with customs, or when multiple delivery notes are upladed but the older one gets overwritten every time!

I have tested this with versions 4.1.3 and 4.2.0.
When I give the FTP user write only rights, PDF Creator will give an error when the file already exists but it will not add a sequential number.

We get error 18107