I'm trying to print the Data which contains string and media (image) as part of multipart form-data. It does print text content but also dumps the jpg image which obviously goes into infinite dumping. Is it possible to print something meaningful from this Data so that media (image) part doesn't get printed?
I was thinking if it is possible to just print, by writing a custom function, text content from it and ignore image part?
print(String(decoding: request.httpBody!, as: UTF8.self))
Snippet of print
...
Content-Disposition: form-data; name="image"; filename="IMG_0111.HEIC" Content-Type: image/jpeg
����JFIF,,AMPF��-sExifMM*V^(�if�HH�0221��0100����Ф(,KHH����x�"��
.....