Skip to content

Commit 2e4c1eb

Browse files
docs: update save file example
1 parent 2a79d3e commit 2e4c1eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ import mimetypes
322322

323323
filePath = 'C:\\Users\\sfree\\Documents\\Temp\\Test Attachment.txt'
324324
fileName = os.path.basename(filePath)
325-
contentType = mimetypes.guess_type(filePath)
325+
contentType = mimetypes.guess_type(filePath)[0]
326326

327327
request = SaveFileRequest(
328328
recordId=60,

0 commit comments

Comments
 (0)