Issue #1150šŸ’¬ AnsweredOpened May 31, 2018by afaraha84031 reactions

Get Uploads as Base64

Quick answerby artfā¤ 1

Have you tried with this?

Read full answer below ↓

Question

Hello All, I need help integrating this into a web app that I have. Everything renders and works as expected but I am trying to get the uploaded images (through drag and drop) as a base64. Using an endpoint is not an option I can use. This is the code that I have Also after I process my external upload function do I just call the add asset to make the image available? Appreciate any support on this...

Answers (3)

artf• June 1, 2018

Have you tried with this?

assetManager: {
	...
	uploadFile: false,
	embedAsBase64: true,
afaraha8403• June 1, 2018

Yes I tried that. But what I am looking for it to get the base64 file so I can upload to the plateform I am using and then adding the return url to grapesjs

artf• June 5, 2018

Well then use uploadFile and if you don't know how to get the base64 of the file try to copy embedAsBase64

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.