Skip to content

TagSpaces is an offline, open source, document manager with tagging support

TSN698 - upload in web to Minio server broken (#1464)

Stanimir9a79c83eb90b
diff --git a/app/reducers/io-actions.ts b/app/reducers/io-actions.ts
index 98e821a00..a0fe263a6 100644
--- a/app/reducers/io-actions.ts
+++ b/app/reducers/io-actions.ts
@@ -210,10 +210,13 @@ const actions = {
reader.onload = async (event: any) => {
await readerLoaded(event, inx, filePath);
};
- /* if (AppConfig.isCordova) {
+ if (AppConfig.isWeb) {
+ reader.readAsBinaryString(file);
+ } /* else if (AppConfig.isCordova) {
reader.readAsDataURL(file);
- } else { */
- reader.readAsArrayBuffer(file);
+ } */ else {
+ reader.readAsArrayBuffer(file);
+ }
}
async function readerLoaded(event, index, fileTargetPath) {