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.
Merge pull request #388 from macagoraga/patch-1

change unique id of post-files