If you use the Link to PDF Action to upload the file, then changing the PDF file (on your Mac) and uploading again within Freeway will upload the latest version of the PDF to the server.
If you want to set up something where you can tell the secretary to upload a file using an FTP application (maybe set up a special user using your cPanel that is “jailed” to just that one folder), and have your server automagically serve up the latest file, then you have a few choices. Among these, the simplest would be for you to make a manual link to the file (don’t use an Action at all). Use the Hyperlink dialog to create the URL exactly the way you want it to be, maybe make a folder with your FTP application called downloads (in the Web root folder) and place your files there. In Freeway, make your link by selecting some text, opening the Hyperlink dialog, and choosing the External tab. Enter a relative path to the file. If your Web page is in the site root (say that’s called htdocs, for instance) and your downloads folder is in that same folder, like this:
htdocs/
downloads/
pdf_number_one.pdf
pdf_number_two.pdf
file_listing_page.html
index.html
Resources/
...
Then you would type into the URL field exactly this:
downloads/pdf_number_one.pdf
That’s a relative URL, starting with the spot in the filesystem where the HTML file containing the link lives, and navigating from that point to the file.
Once you have done this, then assuming you never name that file anything else, but upload a newer and different version of it directly to the downloads folder, then you never have to change the Freeway page again. The link will always work until you rename or delete that file from your server. Best of all, each time you upload in Freeway, you won’t have to suffer through the whole PDF file uploading again (which happens all too frequently, even when nothing about it has changed).
Another way to set this up (and this is quite a bit more work) would be to use the Ajax File Listing Action, found here: AjaxFileListing - ActionsForge
That will allow you to upload many files to a folder, and never have to create or touch the links in your Freeway page. Uploading another file to the folder will result in a new link automatically appearing on your Web page. So you could have something like newsletters or meeting minutes appear, one after another, without having to mess around in Freeway. As long as the files each have unique and descriptive names, they will just magically appear on your site.
Walter
On Mar 12, 2015, at 3:08 PM, Eva Grandell email@hidden wrote:
Is there a way (for the school secretary) to upload a pdf file to a folder on the server, that will display on a page (created in Freeway) and will be downloadable?
The way I set it up now is just a graphics box and it seems that changing the source file is not enough, the download file changes nicely, but the same file displayed does not change by just replacing the file.
http://stannsschool.ca/fridgenotes.html
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options