This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Web Designer: problems downloading a file

I try to download a file from a simple file directory on computer using a "Download a file" action, but it does nothing at all. The two mandatory fields in this component are filled like this:

Source: File

Path to source file: format("C:\FTP\{0}", from PWODecisionHistory select prop) (which resolves to a valid path)

What's wrong here? Is there any documentation on this component in Web Designer?

Thanks!

Parents
  • Seems, i found the reason. I had two actions under one Server Action: "Redirect" and "Download a file". The first action in order, Redirect, seems to have masked the second action. When i switched their places and made "Download a file" first, it began working, but Redirect action got lost=))) So, it seems, one has to make add a single action in the Server Action node in order for it to execute.

Reply
  • Seems, i found the reason. I had two actions under one Server Action: "Redirect" and "Download a file". The first action in order, Redirect, seems to have masked the second action. When i switched their places and made "Download a file" first, it began working, but Redirect action got lost=))) So, it seems, one has to make add a single action in the Server Action node in order for it to execute.

Children
  • That's actually due to how HTTP works internally. Both "redirect" and "download a file" will tell the client to do a redirection (HTTP response code 302). The structure of your actions is part of one HTTP request, you can only have one way to respond to the client.