We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 941efce commit 349266fCopy full SHA for 349266f
packages/app/src/app/overmind/namespaces/files/internalActions.ts
@@ -99,7 +99,8 @@ export const uploadFiles: AsyncAction<
99
file.type === 'application/json') &&
100
dataURI.length < MAX_FILE_SIZE
101
) {
102
- const text = dataURI ? atob(dataURI.replace(/^.*base64,/, '')) : '';
+ const text =
103
+ dataURI !== 'data:' ? atob(dataURI.replace(/^.*base64,/, '')) : '';
104
parsedFiles[filePath] = {
105
content: text,
106
isBinary: false,
0 commit comments