add new method that support post with binary file
change uploadimage implementation