#1 prepare attach medias to posts