# File Storage not on Disk

**URL:** <https://forum.xwiki.org/t/file-storage-not-on-disk/11108>\
**Category:** Development\
**Created:** [September 29, 2022, 3:08pm UTC](https://forum.xwiki.org/t/file-storage-not-on-disk/11108 "2022-09-29T15:08:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![oliver.muehlbauer](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/o/77aa72/32.png) [@oliver.muehlbauer](https://forum.xwiki.org/u/oliver.muehlbauer)\
**Post date:** [September 29, 2022, 3:08pm UTC](https://forum.xwiki.org/t/file-storage-not-on-disk/11108/1 "2022-09-29T15:08:03Z")

</div>

Hi,

is it possible to store files or attachments in an other place than disk or database? For example in nextcloud, or over rest api in an archive?

Thank you

Oliver

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [September 29, 2022, 5:08pm UTC](https://forum.xwiki.org/t/file-storage-not-on-disk/11108/2 "2022-09-29T17:08:27Z")

</div>

Hi, not sure what you mean by files.

For attachments, yes you can implement your own Attachment Store and configure XWiki to use it. Some users are storing attachments in Amazon S3 for example.

I think we’re missing documentation for this but basically you need to:

- Implement [xwiki-platform/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/store/XWikiAttachmentStoreInterface.java at b868ed45558efa16656fcfdb94fa66018de87afa · xwiki/xwiki-platform · GitHub](https://github.com/xwiki/xwiki-platform/blob/b868ed45558efa16656fcfdb94fa66018de87afa/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/store/XWikiAttachmentStoreInterface.java#L37) in a xwiki component (there are tutorials about writing xwiki components)
- Use `xwiki.store.attachment.hint = hibernate` in `xwiki.cfg` to tell XWiki to use your component

Thanks

---

<div class="post-metadata">

**Author:** ![oliver.muehlbauer](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/o/77aa72/32.png) [@oliver.muehlbauer](https://forum.xwiki.org/u/oliver.muehlbauer)\
**Post date:** [September 29, 2022, 6:00pm UTC](https://forum.xwiki.org/t/file-storage-not-on-disk/11108/3 "2022-09-29T18:00:18Z")

</div>

Hi,

yes, I meant attachments.

Thank you for the link and your advice, it is very useful for me.

Maybe there is already a S3 implementation?

Thank you

Oliver

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [September 29, 2022, 6:08pm UTC](https://forum.xwiki.org/t/file-storage-not-on-disk/11108/4 "2022-09-29T18:08:06Z")

</div>

> [@oliver.muehlbauer](#):
>
> Maybe there is already a S3 implementation?

It’s not been shared and there are none available on [extensions.xwiki.org](http://extensions.xwiki.org) unfortunately…
