Fixed some of the issues

Fixed some of the issue related to POST method and upload files.