Skip to content

fix issue 3268 - #3269

Merged
Jocs merged 1 commit into
marktext:developfrom
hahaha28:hahaha28/fix_3268
May 11, 2026
Merged

Jocs merged 1 commit into
marktext:developfrom
hahaha28:hahaha28/fix_3268

Conversation

@hahaha28

Copy link
Copy Markdown
Contributor
Q A
Bug fix? yes
New feature? no
Breaking changes? no
Deprecations? no
New tests added? not needed
Fixed tickets Fixes #3268
License MIT

Description

the param of path.join() should be string type

@Jocs
Jocs merged commit 9309888 into marktext:develop May 11, 2026
2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes #3268 by ensuring the second argument passed to path.join() is a string when generating a temporary file path during CLI-based image upload from clipboard/binary data.

Changes:

  • Convert the timestamp used in path.join(tmpdir(), ...) from a number to a string to avoid Node’s TypeError: The "path" argument must be of type string.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeError: The "path" argument must be of type string.

3 participants