Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Open
left0ver wants to merge 1 commit intomarktext:developfrom
left0ver:develop
Open

fix: upload failure with github (#3588)#3589
left0ver wants to merge 1 commit intomarktext:developfrom
left0ver:develop

Conversation

@left0ver
Copy link

@left0ver left0ver commented Mar 6, 2023

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

Copy link

@kb9gxk kb9gxk left a comment

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.

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

2 participants