Is there a way to suppress download in the FileDownloadWrapper or to disabl

Is there a way to suppress download in the FileDownloadWrapper or to disable FileDownloadWrapper?

My situation is this:
There’s an upload-button and a download-button in the same form. The upload-button should only be enabled when the user uploaded a document.
This works well: button is enabled/disabled whenever it should.

But: Even though the download-button is disabled, the FileDownloadWrapper still is clickable and starts the download. (How) Can I disable the FileDownloadWrapper?

No, there’s no feature like that at the moment. I guess your best bet would be to recreate the button when you want to “disable” it.

OK, thanks.