@@ -82,6 +82,10 @@ this.SingleFile = this.SingleFile || (() => {
if (contentType) {
contentType = contentType.match(/^([^;]*)/)[0];
}
+ if (contentType.indexOf("/") <= 0) {
+ debugger
+ contentType = null;
+ }
if (options && options.asDataURI) {
try {
const buffer = await resourceContent.arrayBuffer();