Uploading Video And Image Files alongside xml data submissions to ODK Central

1. What is the issue? Please be detailed.

I am working on a mobile app using React Native that sends the form inputs by users to odk central. I have converted all the inputs to xml data format and it gets sent successfully. But the videos and images the users upload never gets sent. I end up with a status code 404 error.

2. What steps can we take to reproduce this issue?
There isn't much documentation on uploading videos and images. And I'll need more.

3. What have you tried to fix the issue?
I'll attach my code. First i send the xml data as a submission and send the videos and images as an attchment. I put a file size limit.

4. Upload any forms or screenshots you can share publicly below.