Review saved files from the local/server on the detailview screen

Hi,

I have a JmixUpload in DetailView, I uploaded some files on new screen and save them on filestorage. After that I want to get the files I uploaded for users to review on the editing screen. What do I need to do to get that file? I had FileRef store in database.

In Jmix 2.1.2

Thank you!

Hello, you can use the Downloader for this.

Thanks for support!
Can I display files like this image?
And I want to add a download button beside the tick button to download that file.

image

Hi,

on the provided screenshot the Upload component is used. It’s available in the Jmix, see demo: https://demo.jmix.io/ui-samples/sample/upload

Unfortunately, it’s impossible to add custom buttons to the uploaded files list.

Thank Gleb Gorelov,
I have 1 more question, the “Clear/Remove” button doesn’t remove a successfully uploaded file from the server file system or database. It’s only removed from the file list. How to remove the file from the backend?