Open BT5ZH opened 5 years ago
set MediaType(image,png) in http.MultipartFile http.MultipartFile('file', stream, length, filename: path.basename(file.path), contentType: MediaType(mimeTypeData[0], mimeTypeData[1]))
doesnot work.
It seems to set something like " res.fields['Content-Type'] = 'image/png'; " but I am not familiar aws .
Please help out here! Thank you
Were you able to change the metadata using the content-type? I am also experiencing this difficulty!
I managed to solve this question, I uploaded the answer here:
set MediaType(image,png) in http.MultipartFile http.MultipartFile('file', stream, length, filename: path.basename(file.path), contentType: MediaType(mimeTypeData[0], mimeTypeData[1]))
doesnot work.
It seems to set something like " res.fields['Content-Type'] = 'image/png'; " but I am not familiar aws .
Please help out here! Thank you