Skip to content

Commit a872415

Browse files
committed
Fix .mtl file upload
1 parent d89f115 commit a872415

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/utils/fileUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const MEDIA_FILE_QUOTED_REGEX = new RegExp(
6767

6868
export const STRING_REGEX = /(['"])((\\\1|.)*?)\1/gm;
6969
// these are files that have to be linked to with a blob url
70-
export const PLAINTEXT_FILE_REGEX = /.+\.(json|txt|csv|vert|frag|tsv|xml|stl)$/i;
70+
export const PLAINTEXT_FILE_REGEX = /.+\.(json|txt|csv|vert|frag|tsv|xml|stl|mtl)$/i;
7171
// these are files that users would want to edit as text (maybe svg should be here?)
7272
export const TEXT_FILE_REGEX = /.+\.(json|txt|csv|tsv|vert|frag|js|css|html|htm|jsx|xml|stl|mtl)$/i;
7373
export const NOT_EXTERNAL_LINK_REGEX = /^(?!(http:\/\/|https:\/\/))/;

0 commit comments

Comments
 (0)