Skip to content

Commit 275bba4

Browse files
committed
Treat svg files as text files
Fixes codesandbox#1485
1 parent 47b04ee commit 275bba4

File tree

1 file changed

+1
-0
lines changed
  • packages/app/src/app/store/modules/files

1 file changed

+1
-0
lines changed

packages/app/src/app/store/modules/files/actions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ export async function uploadFiles({ api, props, path }) {
136136
/\.(le|sc|sa)ss$/.test(filePath) ||
137137
/\.haml$/.test(filePath) ||
138138
/\.pug$/.test(filePath) ||
139+
/\.svg$/.test(filePath) ||
139140
file.type.startsWith('text/') ||
140141
file.type === 'application/json') &&
141142
dataURI.length < MAX_FILE_SIZE

0 commit comments

Comments
 (0)