add new post method which support upload a buffer in memory