adding encoding parameter to the upload interface