Content-Type: multipart/form-data; boundary=xxBOUNDARYxx
--xxBOUNDARYxx
Content-Type: application/json
Content-Disposition: form-data; name="Details";
{
"Name": "cust",
"FatherName": "Father Name",
"Type": "Flate",
"CNIC": "022543261544",
"Mobile": "03245432615",
"Phone": "0425432615",
"Address1": "Street 1 ",
"City": "Lahore"
}
--xxBOUNDARYxx
Content-Disposition: form-data; name="PropertyDocImage"; filename="property_image.png"
Content-Type: image/png
{image file data bytes}
--xxBOUNDARYxx
Content-Disposition: form-data; name="CNICFrontImage"; filename="CNICFront_image.png"
Content-Type: image/png
{image file data bytes}
--xxBOUNDARYxx
Content-Disposition: form-data; name="CNICBackImage";
filename="CNICBack _image.png"
Content-Type: image/png
{image file data bytes}
--xxBOUNDARYxx
Content-Disposition: form-data; name="NeighborBillImage"; filename="NeighorBill_image.png"
Content-Type: image/png
I want to send images like above mentioned but it's not working for me.
Here I am trying to do
class ApplicationAPI(generics.GenericAPIView):)
Please help me in this