Upload post with image to api working