update upload function for post
Merge branch 'b_dev' of https://github.com/php-training/twitter into b_dev