Current Jmix version: 3.0.0
Previous: 2.7.6
After migrating to version 3, trying to implement upload file based on version 3 docs but deprecated since version 3.0
Uploading Files :: Jmix Documentation
Thank you for pointing out the problem. We’ll update the docs.
Regards,
Konstantin
2 Likes
Would be great, to have a short note, when this is done ![]()
Thanks a lot
Felix
1 Like
Jmix 3.0
‘com.vaadin.flow.component.upload.receivers.MultiFileMemoryBuffer’ is deprecated since version 24.8 and marked for removal
Is there already a proposed way how to do it with Jmix 3.x ?
Regards
The Jmix doc shows the correct example of using the new Upload API, i.e. event.getData():
@Subscribe("fileRefField")
public void onFileRefFieldFileUploadSucceeded(
final FileUploadSucceededEvent<FileStorageUploadField, TemporaryStorage.FileInfo> event) {
TemporaryStorage.FileInfo fileInfo = event.getData();
UUID fileId = fileInfo.getId();
log.info("FileId: " + fileId);
...
Regards,
Gleb
Hi @gorelov
The question is not about fileupload.
MultiFileMemoryBuffer newBuffer = new MultiFileMemoryBuffer();
upload.setReceiver(newBuffer);
Regards,
Felix
Jmix Upload component doc covers recommended API: UploadHandler + UploadSucceededEvent provides the same getData() method. For the Java API, the current way is to use the setUploadHandler.
Regards,
Gleb

