fix in encode
uploading files