Repository
OCA/storage · module folder · Try on Runboat
Module version
1.2.0
Category
Uncategorized
Folder size
0.06 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/storage
Last tracking update
2026-08-07 09:06:25
Authors
ACSONE SA/NV, Odoo Community Association (OCA)
Maintainers
ACSONE SA/NV, Odoo Community Association (OCA)
Committers
Stéphane Bidoul, Laurent Mignon (ACSONE), Weblate, OCA-git-bot, oca-ci
Odoo dependencies
OCA/server-env:
OCA/storage:
odoo/odoo:
Python dependencies
fsspec[s3], fsspec>=2025.3.0, python_slugify, fsspec>=2024.5.0
System dependencies
None
Required by
None
Description
This module extends the functionality of [fs_attachment](https://github.com/OCA/storage/tree/16.0/fs_attachment) 
to better support Amazon S3 storage. It includes features such as:

- Special handling of X-Accel-Redirect headers for S3 storages.
- Options for using signed URLs in X-Accel-Redirect. (This is required to be able to serve files from a private S3 bucket 
  using X-Accel-Redirect without exposing the files publicly.)
- Enforcing the mimetype of files stored in S3.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
fs_storage_form_view fs.storage form Inherits fs_attachment.fs_storage_form_view
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (2)
  • s3_signed_url_expiration Integer
    default=30 help='The expiration time for the signed URL in seconds. Default is 30 seconds.' string='Signed URL Expiration (seconds)'
  • s3_uses_signed_url_for_x_sendfile Boolean
    help='If checked, the storage will use signed URLs for attachments when using X-Accel-Redirect. This is useful for S3 storage where the file path is not directly accessible without authentication.' string='Use signed URL for X-Accel-Redirect'
Public methods (1)
  • is_s3_storage(self)
    @property
    Check if the storage is an S3 storage.

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…

Loading…

Loading…