Closed pthieu closed 11 months ago
Related issue https://github.com/junhoyeo/threads-api/issues/111
@aleclarson it's from clipboard as a blob, then I convert it to a base64 datauri string using:
const blobToBase64 = (blob: Blob): Promise<string> => {
const reader = new FileReader();
reader.readAsDataURL(blob);
return new Promise((resolve) => {
reader.onloadend = () => {
resolve(reader.result as string);
};
});
};
It renders on the UI so I know it's working, but based on the comments in #111 it looks like png's are not working?
Yeah looks like converting to a jpg blob works but the file quality is not good
@aleclarson @junhoyeo getting a
Upload image failed
error. I have the following base64 image that will render on the UI using an<img src="..." />
tagIf I do something like:
verbose error:
Using v1.5.4.
I can also confirm that if I remove the imagefield, the post is published so not a credential issue.