change unique id of post-files

I think should be used getUniqueId() for get unique post id, because only id of post can be the same id of another content type.