added upload and delete post methods