Managing Files

In this section, we describe how to work with files uploaded to the system by users: images, documents, etc.

There are two ways to store files in a Jmix application:

  • In the database, using entity fields of the byte array type.

  • In a separate file storage located in the local file system, in the cloud, or based on an external service. In this case, the file is bound to the data model using an entity attribute of the FileRef type.