How do I put in a link to a PDF file that will be stored on my site. I’m planning to host this on the Xojo cloud.
The way I do it is I use a FileCopy step to include it in my Resources folder. Then when the user downloads it, I have a WebFile scoped at the webpage level that I set via WebFile.Open(SpecialFolder.Resources.Child(“myfile.pdf”)).
Set the webfile’s mime type and set ForceDownload to True if you want it to be downloaded instead of displayed, then call Self.GotoURL(webfile.URL).
It’s a lot more steps than the good ole’ a href. But you could always host the file elsewhere and then just link to it.