Upload code for get all posts