Examining the code (and running some simple tests) reveals that Axelor is storing all uploaded files (attachments) in a single flat directory. This may me OK if you only need to store an occasional attachment once in a while. In my case however it is necessary to store between 2 and 10 (or sometimes even more) attachments on every quotation and/or sales order. This can result in several hundred thousands of files stored in a single directory, which will lead to performance issues (to what extent , it depends on the type of file system)
I would like to create a module to override the default storage scheme and split the files among several subdirectories but the class responsible for this (
com.axelor.meta.MetaFiles) uses static methods to calculate the file path to store the uploaded file.
How can I override this?