t11
May 12, 2022, 7:06am
1
Hello,
trying to upload an image through summernote.
Followed these steps
Summernote is a simple to configure and easy to use WYSIWYG Editor available in Wappler. You can use it to format text/content and send it to the server side for example insert/update record.
Inserting Summernote on your page
You can use Summernote with a form or without a form.
Using Summernote with a form
In most of the cases you will be using Summernote with a form, in insert and update record forms.
You can add Summer Note in your form using the Summernote Textarea component, located in…
I am getting 403 error
Usually it returns this
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /dmxConnect/api/back-end/posts/edit_posts/edit_post.php
on this server.</p>
</body></html>
And once it returned this
try { this.xhr.send(data); }
The thing is that when I use the same form, without trying to upload an image, everything works fine. Instead when I try to upload an image inside summernote I get the error described above.
Any help, highly appreciated.
Thank you!
When do you get this error? When uploading the image inside summernote, or when you submit the form?
t11
May 12, 2022, 7:12am
3
Hello Teo,
When I select the image, it shows inside Summernote
Then I submit the form and I get the error.
t11
May 14, 2022, 12:08pm
5
Hello,
it seems that I m not getting the error anymore. The thing is that the image is placed like this in the database
<img style="width: 25%;" src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4gIcSUNDX1BST0ZJTEUAAQEAAAIMbGNtcwIQAABtbnRyUkdCIFhZWiAH3AABABkAAwApADlhY3NwQVBQTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLWxjbXMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAApkZXNjAAAA/AAAAF5jcHJ0AAABXAAAAAt3dHB0AAABaAAAABRia3B0AAABfAAAABRyWFlaAAABkAAAABRnWFlaAAABpAAAABRiWFlaAAABuAAAABRyVFJDAAABzAAAAEBnVFJDAAABzAAAAEBiVFJDAAABzAAAAEBkZXNjAAAAAAAAAANjMgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB0ZXh0AAAAAElYAABYWVogAAAAAAAA9tYAAQAAAADTLVhZWiAAAAAAAAADFgAAAzMAAAKkWFlaIAAAAAAAAG+iAAA49QAAA5BYWVogAAAAAAAAYpkAALeFAAAY2lhZWiAAAAAAAAAkoAAAD4QAALbPY3VydgAAAAAAAAAaAAAAywHJA2MFkghrC/YQPxVRGzQh8SmQMhg7kkYFUXdd7WtwegWJsZp8rGm/fdPD6TD////bAIQAAgMDAwQDBAUFBAYGBgYGCAgHBwgIDQkKCQoJDRMMDgwMDgwTERQRDxEUER4YFRUYHiMdHB0jKiUlKjUyNUVFXAECAwMDBAMEBQUEBgYGBgYICAcHCAgNCQoJCgkNEwwODAwODBMRFBEPERQRHhgVFRgeIx0cHSMqJSUqNTI1RUVc/8IAEQgWwA6QAwEiAAIRAQMRAf/EAB4AAQEAAgIDAQEAAAAAAAAA
t11
May 14, 2022, 12:21pm
7
Found the issue.
I was using the ‘Image’ btn from Summernote and not the ‘Image Upoad’ btn.
It works now
Thank you!