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 1a54aca commit ce608a5Copy full SHA for ce608a5
interactions/client/utils/serializer.py
@@ -170,6 +170,9 @@ def get_file_mimetype(file_data: bytes) -> str:
170
The mimetype of the file.
171
172
"""
173
+ if isinstance(file_data, str):
174
+ return "text/plain"
175
+
176
if file_data.startswith(b"{"):
177
return "application/json"
178
elif file_data.startswith((b"GIF87a", b"GIF89a")):
0 commit comments