Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: Store large Size videos

by
Acsone SA/NV, Laurent Mignon
- 20/11/2024 20:20:31
The fs_attachment addon will allow you to store all the attachments or the attachment of specific binary fields into an external file system like S3.  This addon comes with specific features to avoid loading the full content into memory when the files are served by odoo or to delegate this process to the reverse proxy via x-senfile. (this is explained in the readme file). Another companion addon is fs_file. This addon provides a specialized field that can be used as a file-like object (see readme). As a benefit, you can write the content of your files without having to load the complete content into memory (at least when you use the field in your code).  The specialized widget designed for the fs_file fields is not optimized to avoid the loading of the full content into memory when you want to upload a file but it should be easy to write a dedicated controller defining a route that could be used to put a binary content for a specific field. (This feature could be a nice addition to the fs_attachment addon)

Regards

On Wed, Nov 20, 2024 at 6:57 PM Hed Shefer <notifications@odoo-community.org> wrote:
Great!

And how was the integration after loading to aws S3? Did you fetch the files to the odoo website page without issues?


בתאריך יום ד׳, 20 בנוב׳ 2024, 19:38, מאת Axel Mendoza ‏<notifications@odoo-community.org>:
Hello
I have experience directly uploading big files to AWS S3 and also integrated with Odoo. You should avoid at all cost to give Odoo the file since it will load it completely in memory and it will be very slow and could easily crash for big files


On Wed, Nov 20, 2024 at 11:27 AM Roussel, Denis <notifications@odoo-community.org> wrote:
Hi Hed,

I suggest you to check fs_storage module: https://github.com/OCA/storage/tree/16.0/fs_storage

It supports external storages as S3, ...

Regards,

On Wed, Nov 20, 2024 at 2:42 PM Hed Shefer <notifications@odoo-community.org> wrote:
Hi everyone,

Does anyone have experience with storing very large video files (e.g., 1-hour-long, few GB) in the Odoo file system or an external drive?

Our use case involves an Odoo website with Videos, and we're trying to avoid embedding videos from external platforms like YouTube.

Thanks

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

Reference