function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Upload New Version file to chatter feed through Connect API or APEX Rest call

I am trying to use "upload a new version" functionality for files in chatter through Connect API in my VF page.I am not getting any proper solution to implement it.

Please suggest how I can do it through Connect API or APEX Rest call

The Files functionality isn't exposed in Chatter in Apex (ConnectApi namespace), but it is exposed in Chatter REST API:

You can make a REST callout from Visualforce.