Community mailing list archives

community@mail.odoo.com

Re: About Attachment File Location (again)

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

$DATADIR/filestore//

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

https://github.com/odoo/odoo-extra/tree/master/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:

https://www.odoo.com/forum/help-1/question/ir-attachment-location-for-v8-45571

https://www.odoo.com/forum/help-1/question/where-are-document-attachments-stored-529


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    : togarhutabarat@databit.co.id <mailto:togarhutabarat@databit.co.id>
>
>     Mobile   : +62821-3079-8827
>
>     YM       : sherlocx@ymail.com <mailto:sherlocx@ymail.com>
>
>     Skype    : togar.hutabarat
>     Twitter  : @togarhutabarat
>
> _______________________________________________
> Mailing-List: https://www.odoo.com/groups/community-59
> Post to: mailto:community@mail.odoo.com
> Unsubscribe: https://www.odoo.com/groups?unsubscribe
>