Upload in different directories

I am in the case of a multi-company and I am looking to have one directory per company.

image

I thought of creating a directory each time a company is created with a java method but the upload will always be based on the variable file.upload.dir
.

How can I do this?

it’s not liked that, one directory is used and above is virtual. DMS module manage it. However you can create folders based on your requirements

It is possible to manage several connections: https://docs.axelor.com/adk/5.4/dev-guide/application/multi-tenancy.html

It is not possible to set the registration directory for each tenant ?

yes, unfortunately, multi tenancy is feature provided by hibernate not by axelor.

In multi-tenancy mode, files are uploaded inside sub directories per tenant.