def update_files_for_resource(self, 
                        payload,       # These need to be set to upload a file      
                        filename,      # According to spec, "The client MUST supply a Content-Disposition header with a filename parameter 
                                       #                     (note that this requires the filename be expressed in ASCII)."
                        mimetype=None,
                        packaging=None,
                        md5sum=None,               # optional; will be calculated for you otherwise
                        
                        edit_media_iri = None,
                        
                        on_behalf_of=None,
                        in_progress=False, 
                        metadata_relevant=False,
                        # Pass back the deposit receipt to automatically get the right IRI to use
                        dr = None
                        ):
        if not edit_media_iri:
            if dr != None:
                conn_l.info("Using the deposit receipt to get the Edit-Media-IRI")
                edit_media_iri = dr.edit_media
                if edit_media_iri:
                    conn_l.info("Update Resource via Edit-Media-IRI %s" % edit_media_iri)
                else:
                    raise Exception("No Edit-Media-IRI was given and no suitable IRI was found in the deposit receipt.")   
            else:
                raise Exception("No Edit-Media-IRI was given")
        else:
            conn_l.info("Update Resource via Edit-Media-IRI %s" % edit_media_iri)
            
        return self._make_request(target_iri = edit_media_iri,
                                  payload=payload,
                                  mimetype=mimetype,
                                  filename=filename,
                                  in_progress=in_progress, 
                                  packaging=packaging,
                                  on_behalf_of=on_behalf_of,
                                  method="PUT",
                                  metadata_relevant=str(metadata_relevant),
                                  request_type='EM_IRI PUT',
                                  md5sum=md5sum)
Compare this :class:`.ClauseList` to the given :class:`.ClauseList`,
dataset/ETHPy150Open swordapp/python-client-sword2/sword2/connection.py/Connection.update_files_for_resource--crossover with--dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/sqlalchemy/sql/elements.py/ClauseList.compare