Upload Multiple File Temporary Storage Buffer Jmix 2.1

Here’s my code:

MultiFileTemporaryStorageBuffer receiver = (MultiFileTemporaryStorageBuffer) event.getSource().getReceiver();
Map<UUID, TemporaryStorageFileData> files = receiver.getFiles();
for (Map.Entry<UUID, TemporaryStorageFileData> entry : files.entrySet()){
FileRef fileRef = temporaryStorage.putFileIntoStorage(entry.getKey(), entry.getValue().getFileName());
}

I got error of “FileStorage not found: s3” when trying to put files into temporary storage. How to solve it or to do it?

temporaryStorage.putFileIntoStorage transfers uploaded files from temporary to permanent file storage.
Perhaps you didn’t configure it properly. See Using File Storage :: Jmix Documentation.