osl-base-extended 6.2.0 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2128,12 +2128,7 @@ class OslFileUpload {
|
|
|
2128
2128
|
const file = files[0];
|
|
2129
2129
|
const reader = new FileReader();
|
|
2130
2130
|
reader.onload = () => {
|
|
2131
|
-
const
|
|
2132
|
-
let binary = '';
|
|
2133
|
-
bytes.forEach(byte => {
|
|
2134
|
-
binary += String.fromCharCode(byte);
|
|
2135
|
-
});
|
|
2136
|
-
const value = { fileName: file.name, fileContent: btoa(binary) };
|
|
2131
|
+
const value = { fileName: file.name, fileContent: reader.result };
|
|
2137
2132
|
this.model = value;
|
|
2138
2133
|
this.modelChange.emit(value);
|
|
2139
2134
|
this.changeEv.emit(value);
|