Skip to content

fix: upload failure with github (#3588) - #3589

Merged
Jocs merged 1 commit into
marktext:developfrom
left0ver:develop
May 11, 2026
Merged

Jocs merged 1 commit into
marktext:developfrom
left0ver:develop

Conversation

@left0ver

@left0ver left0ver commented Mar 6, 2023

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

Description

when you use github as your uploader , if you paste a image and upload to github , it will appear error (HttpError: content is not valid Base64) , because the api readAsDataURL will return a base64 with some prefix like 'data:image/png;base64,' and the prefix isn't need

@kb9gxk kb9gxk left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks correct to fix the function.

@Jocs
Jocs merged commit 00d3467 into marktext:develop May 11, 2026
thimbleberrysystems pushed a commit to thimbleberrysystems/WordBird that referenced this pull request Jun 21, 2026
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.

can't upload image in using github uploader,appear HttpError: content is not valid Base64

3 participants