You can share files only from the ASD or shared storage
It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.
To get an image of your blocks, right click in the Blocks Editor and select “Download Blocks as Image”. You might want to use an image editor to crop etc. if required. Then post it here in the community.
The problem is not in the block, what changes in other blocks works, but in the share block it doesn’t compile, for example: I included the “show alert” inside the share method, but the alert does not appear in the application.
the ShareFileWithMessage method does not work for you
However the strange thing seems to be, that in your second screenshot you are using another method, my guess is, it is the ShareMessage method. . Don’t you want to share a file anymore?
Yes it would be great to switch the language to English before taking a screenshot …