mime icon indicating copy to clipboard operation
mime copied to clipboard

Blob type always null

Open AlexanderMendivil opened this issue 2 years ago • 2 comments

I've noticed that there is no a return type in the default_extension_map.dart for blob files, therefore I'm always getting null while bringing a blob file to lookupMimeType

AlexanderMendivil avatar Feb 23 '23 17:02 AlexanderMendivil

Did you find a solution for this, I also see the same error.

ollyde avatar May 19 '23 11:05 ollyde

I did a workaround for it, I just returned the extension and then adding the right type as the library does, I did it this way because I knew I will always have images

final parts = preSignedUrl.split('?'); final extension = parts[parts.length - 2].split(".").last.toLowerCase(); if(extension.contains('blob')){ return extension; } return lookupMimeType(extension);

I haven't move my code since I did it, not sure if the library got updates

AlexanderMendivil avatar Jun 28 '23 19:06 AlexanderMendivil