add upload() with string and buffer