# Talk shares Shows in Home Directory

**URL:** <https://help.nextcloud.com/t/talk-shares-shows-in-home-directory/153219>\
**Category:** ℹ️ Support\
**Tags:** nc20, user\_oidc, feature, talk-app, nc18-nextcloud-hub\
**Created:** [January 8, 2023, 2:57pm UTC](https://help.nextcloud.com/t/talk-shares-shows-in-home-directory/153219 "2023-01-08T14:57:39Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![dolphinscorp](https://help.nextcloud.com/letter_avatar/dolphinscorp/32/6_22734026db12803ebb3e059622ac3534.png) [@dolphinscorp](https://help.nextcloud.com/u/dolphinscorp)\
**Post date:** [January 8, 2023, 2:57pm UTC](https://help.nextcloud.com/t/talk-shares-shows-in-home-directory/153219/1 "2023-01-08T14:57:39Z")

</div>

Hi,

We have upgraded from NC 24.0.7 to 25.0.3, all is well. But it happened first time that talk shared files shows in home directory of users. How to prevent shared files to display in home direcotory? It was fine before upgade. All talked shared files remain in home/Talk directory

OS : Debian 11

---

<div class="post-metadata">

**Author:** ![ligal](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ligal/32/46100_2.png) [@ligal](https://help.nextcloud.com/u/ligal)\
**Post date:** [January 9, 2023, 7:52pm UTC](https://help.nextcloud.com/t/talk-shares-shows-in-home-directory/153219/2 "2023-01-09T19:52:06Z")

</div>

> [@dolphinscorp](#):
>
> e before upgade. All talked shared files remain in home/Talk d

Hi,

Each user can configure the path/folder where talk attachments are stored in the talk app: talk settings\>Attachments folder.

If you want to do it for all users yourself, you have to do it on the preference table directly.

---

<div class="post-metadata">

**Author:** ![dolphinscorp](https://help.nextcloud.com/letter_avatar/dolphinscorp/32/6_22734026db12803ebb3e059622ac3534.png) [@dolphinscorp](https://help.nextcloud.com/u/dolphinscorp)\
**Post date:** [January 11, 2023, 3:41pm UTC](https://help.nextcloud.com/t/talk-shares-shows-in-home-directory/153219/3 "2023-01-11T15:41:23Z")

</div>

Hi

Thank you so much for reply

I could not find find settings → Talk app → attachments folders anywhere in personal settings or in administration settings

Also in oc\_preference table there I also could not find anything related to talk attachment folder …

Also observation is that new attachments are being placed in talk/ for all users. Only issue is, old attachments after upgrades are in home directory users. And users cannot move them anywhere,

---

<div class="post-metadata">

**Author:** ![ligal](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ligal/32/46100_2.png) [@ligal](https://help.nextcloud.com/u/ligal)\
**Post date:** [January 11, 2023, 7:49pm UTC](https://help.nextcloud.com/t/talk-shares-shows-in-home-directory/153219/4 "2023-01-11T19:49:05Z")

</div>

> [@dolphinscorp](#):
>
> I could not find find settings → Talk app → attachments folders anywhere in personal settings or in administration settings

At the bottom left corner

![Capture2](https://help.nextcloud.com/uploads/default/original/3X/2/7/27ecd78879b55a59a0bf8d8902b04a177f1dd23b.png)

And then

 ![Capture](https://help.nextcloud.com/uploads/default/original/3X/5/0/500081967504e6d3c6736276b5bb64cf5d37eeb6.png)

> [@dolphinscorp](#):
>
> Also in oc\_preference table there I also could not find anything related to talk attachment folder

My bad it might be the {something}\_preferences table (if I’m not remembering wrong again 😃 )

> [@dolphinscorp](#):
>
> Also observation is that new attachments are being placed in talk/ for all users. Only issue is, old attachments after upgrades are in home directory users. And users cannot move them anywhere,

But anyway, if I’m understanding it correctly it’s not new shared files that are places under the root folder of each user but the old shared files before the update to NC25 that was moved from the talk folder to the root folder of each user.

In that case you may want to create a script to move file accordingly to their attributes. But doing it manually could be better based on the difficulty you have to create that script.

---

<div class="post-metadata">

**Author:** ![dolphinscorp](https://help.nextcloud.com/letter_avatar/dolphinscorp/32/6_22734026db12803ebb3e059622ac3534.png) [@dolphinscorp](https://help.nextcloud.com/u/dolphinscorp)\
**Post date:** [January 17, 2023, 10:46am UTC](https://help.nextcloud.com/t/talk-shares-shows-in-home-directory/153219/5 "2023-01-17T10:46:40Z")

</div>

Okay thank you.

Unfortunately, i could not found these shared files in terminal data/username/files/ . Only they display in nextcloud user files in web interface.

This is so much strange.

---

<div class="post-metadata">

**Author:** ![ligal](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ligal/32/46100_2.png) [@ligal](https://help.nextcloud.com/u/ligal)\
**Post date:** [January 17, 2023, 8:04pm UTC](https://help.nextcloud.com/t/talk-shares-shows-in-home-directory/153219/6 "2023-01-17T20:04:33Z")

</div>

> [@dolphinscorp](#):
>
> Only they display in nextcloud user files in web interface.

Hi,

Have you tried these commands ?

php occ files:scan --all  
php occ maintenance:repair

You can find other useful command here : [Using the occ command — Nextcloud latest Administration Manual latest documentation](https://docs.nextcloud.com/server/20/admin_manual/configuration_server/occ_command.html)?

---

<div class="post-metadata">

**Author:** ![dolphinscorp](https://help.nextcloud.com/letter_avatar/dolphinscorp/32/6_22734026db12803ebb3e059622ac3534.png) [@dolphinscorp](https://help.nextcloud.com/u/dolphinscorp)\
**Post date:** [January 19, 2023, 8:33am UTC](https://help.nextcloud.com/t/talk-shares-shows-in-home-directory/153219/7 "2023-01-19T08:33:47Z")

</div>

`

> [@ligal](#):
>
> Have you tried these commands ?
> 
> php occ files:scan --all  
> php occ maintenance:repair

Yes i have just tried these commands, still same .

---

<div class="post-metadata">

**Author:** ![dolphinscorp](https://help.nextcloud.com/letter_avatar/dolphinscorp/32/6_22734026db12803ebb3e059622ac3534.png) [@dolphinscorp](https://help.nextcloud.com/u/dolphinscorp)\
**Post date:** [January 21, 2023, 12:00pm UTC](https://help.nextcloud.com/t/talk-shares-shows-in-home-directory/153219/8 "2023-01-21T12:00:06Z")

</div>

Any more suggestion please? Any hint may be helpful.

---

<div class="post-metadata">

**Author:** ![dolphinscorp](https://help.nextcloud.com/letter_avatar/dolphinscorp/32/6_22734026db12803ebb3e059622ac3534.png) [@dolphinscorp](https://help.nextcloud.com/u/dolphinscorp)\
**Post date:** [January 21, 2023, 1:16pm UTC](https://help.nextcloud.com/t/talk-shares-shows-in-home-directory/153219/9 "2023-01-21T13:16:37Z")

</div>

One finding i have that want to share, may be someone give some advice.

I have restored nextcloud database (before upgrade) and compared it with current database (after upgrade). Realized that in oc\_share /Talk/ has been replaced with / with old talk shared files following is sample .

 ![image](https://help.nextcloud.com/uploads/default/original/3X/6/f/6f7dbe7db03a75cfb39f0e78d8e220c5fab063d3.png)

Left side snapshots shows oc\_share of NC database before upgrade. Right snapshot shot shows oc\_share of NC database after upgrade.

Now how to fix this issue.

occ files:scan --all and maintenace:repair does not fix the issue.

Any advice?

Manual correction is not possible because there are 1000s of rows.

---

<div class="post-metadata">

**Author:** ![ligal](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ligal/32/46100_2.png) [@ligal](https://help.nextcloud.com/u/ligal)\
**Post date:** [January 21, 2023, 3:46pm UTC](https://help.nextcloud.com/t/talk-shares-shows-in-home-directory/153219/10 "2023-01-21T15:46:44Z")

</div>

> [@dolphinscorp](#):
>
> Any more suggestion please? Any hint may be helpful.

Hi,

I do not know how to repair this quickly with Nextcloud commands unfortunately.

But I can suggest that you create a short script that will clean your database.  
It’s not complicated to create and I can guide you if you want.  
I would recommend testing it on a replication of your nextcloud instance tho - just in case.

I can imagine two approaches:

1. Compare each talk folder and home and if you find a duplicate delete the one in the home folder.
2. Or you can compare both databases and delete duplicates.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 14, 2024, 2:20pm UTC](https://help.nextcloud.com/t/talk-shares-shows-in-home-directory/153219/11 "2024-12-14T14:20:10Z")

</div>


