Issue with getting versioned page attachment url based on livesite domain

jamez Rad asked on September 9, 2024 20:25

In Kentico 13 my problem is downloading url of an attachment which its page is under workflow and has not been published yet.

If i use CMS domain url downloads file but using livesite domain gets 404 and we don't have public domain for CMS in publish environment. How shoud i fix it?

Correct Answer

Juraj Ondrus answered on September 11, 2024 06:39

The page object must be in published workflow step. How you get to that step is up to you. You can add more custom steps between the edit and published steps so you have more approvals or, start a new workflow cycle, attach the file, approve and publish this change.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Juraj Ondrus answered on September 10, 2024 05:30

If a page and its attachments are not published = not available on the live site. So, the behavior is desired and by design. Why would you need to have live URL available for a page/page attachment which is not published? In this case publish the page or, do not use workflows to make the live site URL publicly accessible.

0 votesVote for this answer Mark as a Correct answer

jamez Rad answered on September 10, 2024 17:44 (last edited on September 10, 2024 18:00)

Thank you for involve Juraj

Let's say we have a request that needs to be approved by some users in a workflow and someone needs to attach a file during this workflow. as you know the request pagetype-table doesn't update in database until we publish it.


Is there a better way to handle this request? What if we publish it in first-step and then move forward via new version and throughout steps, although this method is not user-friendly, but does it solve my problem (downloading versioned attachment via livesite domain)?

0 votesVote for this answer Mark as a Correct answer

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