Permissions to add image in html-editor (k-editor)

Hello,

I can add images in a k-editor-widget because I have Full Control on the site, normal users not. I give them Edit-permissions on /TheSiteName/SitePages/PlumsailForms/Images but still I get 2 errors.

Thank you,

Daniël

2020-02-18_16h58_53

The HTTP method 'GET' cannot be used to open the source 'Add'. The operation type of the source is specified as 'Default'. Use the correct HTTP method to call the source.

spform.js:1 POST https://------.sharepoint.com/schoolreglementen/_api/Web/Lists(guid'2d4e635e-205d-4d3f-8213-a9efacefa5ed')/rootFolder/folders('PlumsailForms')/folders/add('Images') 403
e.fetch @ spform.js:1
i @ spform.js:36
(anonymous) @ spform.js:36
e.fetchRaw @ spform.js:36
(anonymous) @ spform.js:36
Promise.then (async)
e.fetch @ spform.js:36
(anonymous) @ spform.js:26
e.send @ spform.js:26
o.value @ spform.js:26
g @ spform.js:26
(anonymous) @ spform.js:26
Promise.then (async)
o.value @ spform.js:26
g @ spform.js:26
(anonymous) @ spform.js:26
Promise.then (async)
o.value @ spform.js:26
g @ spform.js:26
v @ spform.js:26
(anonymous) @ spform.js:26
Promise.then (async)
t.postCore @ spform.js:26
t.add @ spform.js:36
(anonymous) @ 22.93dc23d49ec45083e4e0.js:1
(anonymous) @ 22.93dc23d49ec45083e4e0.js:1
(anonymous) @ 22.93dc23d49ec45083e4e0.js:1
r @ 22.93dc23d49ec45083e4e0.js:1
Promise.then (async)
l @ 22.93dc23d49ec45083e4e0.js:1
(anonymous) @ 22.93dc23d49ec45083e4e0.js:1
p @ 22.93dc23d49ec45083e4e0.js:1
e._ensureImagesFolder @ 22.93dc23d49ec45083e4e0.js:1
(anonymous) @ 22.93dc23d49ec45083e4e0.js:1
(anonymous) @ 22.93dc23d49ec45083e4e0.js:1
(anonymous) @ 22.93dc23d49ec45083e4e0.js:1
(anonymous) @ 22.93dc23d49ec45083e4e0.js:1
p @ 22.93dc23d49ec45083e4e0.js:1
e.upload @ 22.93dc23d49ec45083e4e0.js:1
l.onload @ 22.93dc23d49ec45083e4e0.js:1
load (async)
i @ 22.93dc23d49ec45083e4e0.js:1
pasteImagesFromDisk @ 22.93dc23d49ec45083e4e0.js:1
Ve @ spform.js:42
n @ spform.js:42
i._wrapper @ spform.js:42
22.93dc23d49ec45083e4e0.js:1 Error: Error making HttpClient request in queryable: [403]
at new t (spform.js:26)
at t.e.handleError (spform.js:26)
at spform.js:26
at new Promise ()
at t.e.parse (spform.js:26)
at spform.js:26
(anonymous) @ 22.93dc23d49ec45083e4e0.js:1
Promise.catch (async)
l.onload @ 22.93dc23d49ec45083e4e0.js:1
load (async)
i @ 22.93dc23d49ec45083e4e0.js:1
pasteImagesFromDisk @ 22.93dc23d49ec45083e4e0.js:1
Ve @ spform.js:42
n @ spform.js:42
i._wrapper @ spform.js:42

Hello @danieljr,

I'm not sure I understand what you are trying to achieve. Could you provide more detailed information on what you want to do.

Hello Nikitina,

We try to use the functionality in the html-editor field to upload a picture. This only works for admins ...

Thank you,

Daniël

@danieljr,

I couldn't reproduce the case on my tenant.

Do you have any custom code in a form? Please try to comment it out and check if you are getting the error.

Still the same error => Error 403 (no App permissions)

https://edusoantwerpen.sharepoint.com/Test_CSS/_api/Web/Lists(guid'cd6df722-4897-4ac0-848b-3c3d819ead5e')/rootFolder/folders('PlumsailForms')/folders/add('Images')

Hello @danieljr,

I've found the cause of the issue.

Pictures that you insert in the Sharepoint multiline text field are uploaded to Site Pages >> PlumsailForms >> Images folder. So you need to make sure that users have permission to create folders and upload files to document libraries.

You can either grant users a Contribute permission level or check Add Items in the permission setting of the Edit permission level.

Thanks! It's working now

1 Like

Hello Nikitina,

The problem returned … => Error 403 (no App permissions)

Thank you i advance,

Daniël

2020-03-10_15h45_03

Hello @danieljr,

Have you changed any settings or permission?
A user with which permission gets the error?

Hello,

I'ts OK again.

Sorry,

Daniël

1 Like