selectedPost.files not selectedPosts.files