Dear Florin,
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
Kind regards,
Mladen