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
Andrea mAndrea m 

Content Type on content posts

Hi,

Does anyone know why the contentType of a file when inserting a FeedItem ( of type ContentPost ) is different form the ContenType accessed later?

what I'm a doing:

- i added an afterInsert trigger on FeedItem and I'm printing the conten type of the posted file. So if I post a file to an Account I can check the logs to see the content type ( in this case : JPEG)

- when later I check the corresponding AccounFeed object , for the same feedItem I'm getting this content type : image/jpeg

 

I think  I'm missing something here, but I couln't find out what is it

 

thanks in advance, Andrea