fix remote_upload and style coding in local_upload