Symptom:
The content cannot be properly displayed in the preview area. When you tap the sharing mode area or operation area, the message "The file you selected cannot be shared." is displayed.
Possible causes:
Share Kit cannot access the file URI provided by the app. The possible causes are as follows:
The file URI format is incorrect.
The file URI does not exist or the app does not have permission to access the file.
Solution:
Verify that the file URI format is correct. For details, please refer to File URI Specifications.
Verify that the file exists and the app has permission to access the file. You can use fileIo.stat to try accessing the file, and compare the file creation time with the sharing initiation time to confirm the existence of the file.