@ks_1 you can submit files the same way by just extending the submit_data()
method above. Something like this:
def submit_data(data, file_name):
...
another_file_tuple = (file_name, open(file_name, 'rb'))
files = {'xml_submission_file': file_tuple, file_name: another_file_tuple}
...
Note that if you look at the network tab in your browser dev tools while submitting data through Enketo, the request data will give you a rough idea how to do what you’re wanting.