osl-base-extended 6.1.0 → 6.2.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,7 +2128,12 @@ class OslFileUpload {
|
|
|
2128
2128
|
const file = files[0];
|
|
2129
2129
|
const reader = new FileReader();
|
|
2130
2130
|
reader.onload = () => {
|
|
2131
|
-
const
|
|
2131
|
+
const bytes = new Uint8Array(reader.result);
|
|
2132
|
+
let binary = '';
|
|
2133
|
+
bytes.forEach(byte => {
|
|
2134
|
+
binary += String.fromCharCode(byte);
|
|
2135
|
+
});
|
|
2136
|
+
const value = { fileName: file.name, fileContent: btoa(binary) };
|
|
2132
2137
|
this.model = value;
|
|
2133
2138
|
this.modelChange.emit(value);
|
|
2134
2139
|
this.changeEv.emit(value);
|