in CUBA we had a file storage manager under Administration-External Files (sys$FileDescriptor.browse)
Do we have something similar with Jmix 2.1, or are we to make it by ourselves? Also are there any plans to have something like that within a few months, like Februray release?
this is a really good example, thank you for helping the people.
I used something similar to your SysFileDetailView.java.
The difference is
if (event.getReceiver() instanceof FileTemporaryStorageBuffer buffer) {
UUID fileId = buffer.getFileData().getFileInfo().getId();
File file = temporaryStorage.getFile(fileId);
if (file != null) {
Long size = file.length();
FileRef fileRef = temporaryStorage.putFileIntoStorage(fileId, event.getFileName());
Just a remark for the readers, one needs to get the file size before .putFileIntoStorage otherwise size information does not exist anymore and returns 0 - it is temporary storage after all