Community mailing list archives

Re: About Attachment File Location (again)

Antony Lesuisse (al)
- 01/31/2015 07:11:12
Attachment are stored oustide the database by default in v8 in


They are named as sha1 hash (almost like git objetcs).

Under Linux or any other freedesktop compliant distribution the data is 
$HOME/.local/Odoo and can be override with --data-dir=

This  question is still relevant the only difference is that we enabled it by 
default in v8.

For ftp access i recommend that you use the document_fs

If sync back from ftp to ir.attachment you need to execute _document_fs_sync 
from a cron job or as post logout script from the ftp server.

Forum questions:

On 01/31/2015 04:47 AM, Togar Hutabarat wrote:
> Hello Community!
> Maybe many question similar with my question has been asked by a many people
> in forums or Stackoverflow. But please allow me to ask again in this community
> forum. My question: is there any possibility for Odoo to save attachment
> directly into a file system directory (instead of database)?
> Another doubt about this: I know that we can configure FTP for Odoo (module
> document_ftp), so we can browse/copy/open attachment by using file explorer
> (Linux/Windows/iOS) or using any FTP client. Is that it really store the file
> into FTP server? Or is Odoo just use FTP as a emulation interface to access
> attachments? What we want is to make sure Odoo not store attachment data into
> database that may increase database size when we upload big files.
> Really appreciate any answer..
> Thanks,
>     *
>     Togar Parnaehan Hutabarat*
>     *Databit - Odoo Partner Indonesia*
>     Email    : <>
>     Mobile   : +62821-3079-8827
>     YM       : <>
>     Skype    : togar.hutabarat
>     Twitter  : @togarhutabarat
> _______________________________________________
> Mailing-List:
> Post to:
> Unsubscribe: