Convert file to base64 - different results on Web and Mobile

Hi there,

the Convert file to base64 flow function delivers different results on web and mobile. On the web the resulting base64 text includes the leading string ‘data:application/pdf;base64,’ and on the mobile it doesn’t.

I can add the string on the mobile but where do I get the MIME type ‘application/pdf’ or ‘image/png’ when the MIME type of the original file/image is not set? Should I parse the file name and hope for a correct file type? What is the best practise here?

Thank you and best regards,