Hi, In Cuba there was something like FileDescriptor to upload or download files. In Jmix I can’t find it… what is the best way to upload for example pdf file to database and then download it by clicking specified button? In Component Pallete is something like FileUploadField and it worked for .jpg image but does it also work for other file extensions?
What is my goal: Saving specified user’s documents to a list (
User:
@OneToMany(mappedBy = “userDocument”)
private List[Document] documents;
Document:
@JoinColumn(name = “USER_DOCUMENT_ID”)
@ManyToOne(fetch = FetchType.LAZY)
private User userDocument;
) and then be able to download chosen document.
I will be glad for help ^^ Have a nice day!