How to get latest attachment file from node.

Manmath Kulkarni asked on September 6, 2017 09:34

Hi ,

Currently I am using following API to get attachment on root page from android application external to Kentico.

http://MySite.com/mysite/getattachment/myFile.txt.aspx

I update this file according to page updates.

However it always returns old file with this API. Is there is any way to get latest file with this name using Kentico API. Or is this anything related to caching ?

Thanks in advance,
Manmath

Recent Answers


Chetan Sharma answered on September 6, 2017 12:27

Is there by any chance Workflow enabled on your system and your changes are still in Pending/Not approved/Published? You can verify this by a yellow icon which means some changes are still in yet to be approved state.

If that's the case you need to approve/publish changes after making a change. The API will always return the latest approved/published version.

Regards, Chetan

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.