add post file and get file functionality