I am using django-rest-framework and I have a registration form that accepts some data which includes an image file of the user.
How can I emulate this using cURL? I can post JSON data like the following:
curl -i -X POST -H "Content-Type: application/json" -d '{"email_address":"[email protected]", "password": "Password", "display_name": "mark", "full_name": "Mark", "gender": "M", "date_of_birth": "1955-05-05", "location_id": "3"}' http://localhost/register
How can I add an image field to this form?