# Collabora + Nextcloud -\> Image -\> Insert Image

**URL:** <https://forum.collaboraonline.com/t/collabora-nextcloud-image-insert-image/2639>\
**Category:** Installation & Configuration\
**Created:** [May 20, 2024, 1:11pm UTC](https://forum.collaboraonline.com/t/collabora-nextcloud-image-insert-image/2639 "2024-05-20T13:11:34Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![njscop](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/njscop/32/1148_2.png) [@njscop](https://forum.collaboraonline.com/u/njscop)\
**Post date:** [May 20, 2024, 1:11pm UTC](https://forum.collaboraonline.com/t/collabora-nextcloud-image-insert-image/2639/1 "2024-05-20T13:11:34Z")

</div>

Hello,

It seems I can’t find a solution to my issue.

Nextcloud works as it should.  
Colabora also works as it should.

The only thing that trows errors in Browser console (Nothing on screen) is when you try to insert picture from Nextcloud.

1. When you press Image-\>Insert Image in colabora it displays images and you can browse folders.
2. You can also upload images directly from PC to colabora and it works without any problems.

When you insert picture from Nextcloud in Console you get error:

> GET [https://files.example.com/apps/richdocuments/assets/](https://files.example.com/apps/richdocuments/assets/) 404 (Not Found) → FilesAppIntegration.js:176
> 
> Uncought (in promise):  
> z {message: ‘Request failed with status code 404’, name ‘AxiosError’, code: ‘ERR\_BAD\_REQUEST’ } FilesAppIntegration.js:177

It references code:

```
	const insertFileFromPath = async (path) => {
		const filename = path.substring(path.lastIndexOf('/') + 1)
		const { data } = await axios.post(generateUrl('apps/richdocuments/assets'), { path })
		insertFile(filename, data.url)
	}

```

Any suggestions?

Curl / TLS works for both domains from colabora-\>nextcloud from nextcloud-\>colabora.  
No WOPI limitations set for debugging in nextcloud.

NC version: 29.0.0  
CB version 24.04.2.1

Webserver Nginx + SSL termination (copy from Colabora website).  
Colabora separate domain  
Nextcloud separate domain

---

<div class="post-metadata">

**Author:** ![njscop](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/njscop/32/1148_2.png) [@njscop](https://forum.collaboraonline.com/u/njscop)\
**Post date:** [May 20, 2024, 1:12pm UTC](https://forum.collaboraonline.com/t/collabora-nextcloud-image-insert-image/2639/2 "2024-05-20T13:12:46Z")

</div>

Errors in docker log:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/collaboraonline/original/2X/5/52ac8b537e8f9dce535db61a251626b9e06d4e4a.jpeg)

---

<div class="post-metadata">

**Author:** ![njscop](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/njscop/32/1148_2.png) [@njscop](https://forum.collaboraonline.com/u/njscop)\
**Post date:** [May 21, 2024, 8:59am UTC](https://forum.collaboraonline.com/t/collabora-nextcloud-image-insert-image/2639/3 "2024-05-21T08:59:45Z")

</div>

I can provide more information - I really want to solve this.

---

<div class="post-metadata">

**Author:** ![cornouws](https://avatars.discourse-cdn.com/v4/letter/c/7ab992/32.png) [@cornouws](https://forum.collaboraonline.com/u/cornouws)\
**Post date:** [May 21, 2024, 9:36am UTC](https://forum.collaboraonline.com/t/collabora-nextcloud-image-insert-image/2639/4 "2024-05-21T09:36:30Z")

</div>

Hi njscop,

Welcome here 🌞

Thanks for reporting. I noticed similar some time ago,

> [@njscop](#):
>
> CB version 24.04.2.1

and also that it works OK for us in 24.04.4…  
Is it possible for you to test that?  
Thnks also for your clear reporting!  
Cor

---

<div class="post-metadata">

**Author:** ![njscop](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/njscop/32/1148_2.png) [@njscop](https://forum.collaboraonline.com/u/njscop)\
**Post date:** [May 21, 2024, 9:39am UTC](https://forum.collaboraonline.com/t/collabora-nextcloud-image-insert-image/2639/5 "2024-05-21T09:39:37Z")

</div>

cornouws - I will test it immediately.

---

<div class="post-metadata">

**Author:** ![njscop](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/njscop/32/1148_2.png) [@njscop](https://forum.collaboraonline.com/u/njscop)\
**Post date:** [May 21, 2024, 9:56am UTC](https://forum.collaboraonline.com/t/collabora-nextcloud-image-insert-image/2639/6 "2024-05-21T09:56:34Z")

</div>

So I could not find docker 24.04.4 version where should I download it?  
But I installed older 23.05.10. 1.1 and got the same error.

---

<div class="post-metadata">

**Author:** ![andras.timar](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/andras.timar/32/3_2.png) [@andras.timar](https://forum.collaboraonline.com/u/andras.timar)\
**Post date:** [May 21, 2024, 10:56am UTC](https://forum.collaboraonline.com/t/collabora-nextcloud-image-insert-image/2639/7 "2024-05-21T10:56:30Z")

</div>

When the image insertion succeeds, on JS debug console I see:  
`1716288411769 OUTGOING: insertfile name=https%3A%2F%2Fshare.collabora.com%2Findex.php%2Fapps%2Frichdocuments%2Fassets%2FTAmV8vyGjAZAht0i7dCSWfItGMX6zPkAmE9BmR2fBpNagNkpDy366dCZCn5BxPDo type=graphicurl`  
Then the coolwsd server downloads the image from Nextcloud  
Your screenshot shows unrelated error messages (missing icons on user interface).  
You can check if you see the insertfile command (Ctrl+Shift+Alt+D and Log outgoing messages), and try to curl that URL. There must be some routing or permission problem.

---

<div class="post-metadata">

**Author:** ![njscop](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/njscop/32/1148_2.png) [@njscop](https://forum.collaboraonline.com/u/njscop)\
**Post date:** [May 21, 2024, 11:07am UTC](https://forum.collaboraonline.com/t/collabora-nextcloud-image-insert-image/2639/8 "2024-05-21T11:07:04Z")

</div>

Ok so I got the console working.

But when inserting picture from Nextcloud the same error:

`GET https://files.example.com/apps/richdocuments/assets/ 404 (Not Found)`

Nothing else on console.

Doing other things I do get INCOMING delta …

---

<div class="post-metadata">

**Author:** ![SolPhyl](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@SolPhyl](https://forum.collaboraonline.com/u/SolPhyl)\
**Post date:** [November 5, 2024, 6:11am UTC](https://forum.collaboraonline.com/t/collabora-nextcloud-image-insert-image/2639/9 "2024-11-05T06:11:28Z")

</div>

Hello,  
I have the same issue. Could you solve it back then?

---

<div class="post-metadata">

**Author:** ![darshan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/darshan/32/2230_2.png) [@darshan](https://forum.collaboraonline.com/u/darshan)\
**Post date:** [November 7, 2024, 1:47pm UTC](https://forum.collaboraonline.com/t/collabora-nextcloud-image-insert-image/2639/10 "2024-11-07T13:47:42Z")

</div>

hii @SolPhyl checkout this answer it will solve your issue.

> **[Colabora + Nextcloud -\> Image -\> Insert Image](https://help.nextcloud.com/t/colabora-nextcloud-image-insert-image/192834/10)**
>
> I have another nextcloud instance and collabora, i can reproduce the issue with commenting following lines https://mynextclouddomain.com I will check that instance tonight Insha Allah lets see if this is the issue

---

<div class="post-metadata">

**Author:** ![darshan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/darshan/32/2230_2.png) [@darshan](https://forum.collaboraonline.com/u/darshan)\
**Post date:** [November 12, 2024, 11:35am UTC](https://forum.collaboraonline.com/t/collabora-nextcloud-image-insert-image/2639/11 "2024-11-12T11:35:31Z")

</div>


