Fs Attachment S3
fs_attachment_s3 · OCA/storage
Health
90/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 3 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 5 Odoo series since 16.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
Modules depending on it
External deps
4 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.06 MB
Module directory on disk
Code analysis
0 migration notes
2 models
1 view
0 HTTP endpoints
Description
This module extends the functionality of 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.
Dependencies
- Odoo dependencies
- Python dependencies
- fsspec[s3], fsspec>=2025.3.0, python_slugify, fsspec>=2024.5.0
- System dependencies
- None
- Required by
- fs_attachment_s3_environment
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_expirationIntegerdefault=30help='The expiration time for the signed URL in seconds. Default is 30 seconds.'string='Signed URL Expiration (seconds)' -
s3_uses_signed_url_for_x_sendfileBooleanhelp='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'
-
is_s3_storage(self)@propertyCheck if the storage is an S3 storage.
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…