Skip to content

Commit aea5c47

Browse files
authored
fix(resources/api): allow svg xml format (pterodactyl#4705)
1 parent 2a7833c commit aea5c47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/scripts/api/transformers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const rawDataToFileObject = (data: FractalResponseData): FileObject => ({
4747
isEditable: function () {
4848
if (this.isArchiveType() || !this.isFile) return false;
4949

50-
const matches = ['application/jar', 'application/octet-stream', 'inode/directory', /^image\//];
50+
const matches = ['application/jar', 'application/octet-stream', 'inode/directory', /^image\/(?!svg\+xml)/];
5151

5252
return matches.every((m) => !this.mimetype.match(m));
5353
},

0 commit comments

Comments
 (0)