However, I do note that attached files (e.g., PDFs) do NOT show up in the Amity UI Kit (and I’m pretty sure we have not toggled a setting that would prevent that).
Furthermore, it doesn’t look like attaching PDFs is possible with the components of the UI Kit. The component src/v4/social/internal-components/CreatePost/CreatePost.tsx looks to be the modal used to create a post, which can use either DetailedMediaAttachment or MediaAttachment as the components to create the media attachment component.
Whichever of these two components is used, I see them using CameraButton, ImageButton, and VideoButton - but NOT FileButton… which looks to not be used at all in the repo at the moment?
We’d like to understand this behavior
(1) is there a setting preventing attached FILES from showing up in the UI Kit?
Hello @mqm, thank you for reaching out and for the detailed information. We’ve passed this to the team for review and will keep you posted with any updates.
Hello @mqm , Thank you for your patience — we’ve checked internally with the team, and we apologize for the longer turnaround time.
In UIKit V4, file post functionality is not currently supported (e.g., PDF/file attachments). That’s why you may see it available in UIKit V3, but it does not appear in V4.
(1) Is there a setting preventing attached FILES from showing up in the UI Kit?
No — this is not related to a configuration or toggle. File attachments are simply not supported in UIKit V4 at the moment.
(2) Is there a way to attach files in the UI Kit?
Not out of the box in V4. However, clients who would like to use file posts can build this feature on top of UIKit V4 using our SDK and customize the frontend implementation according to their design requirements.
You can refer to the SDK documentation here:
If you need any further assistance, please let me know.