Is there a way we could define in Tridion to publish binary file using its own TCM ID as file name?
Starting with Modular Templates' introduction in Tridion 5.3, the default is to publish binaries without a unique identifier (which solved a whole bunch of other issues at the time, like knowing the file name before publishing it, pretty useful when your CSS is produced outside the house, for instance).
I am pretty sure there is still one of the AddBinary overloads (see here) that will publish a filename appending _tcm-12-35 to the file name, just like in the PublishBinary days, but unfortunately cannot test it now.
If your binary publishing is handled by the default finish actions, you will have to modify the file name after this TBB executes, as documented by Chris here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With