If the files folder is under the same folder as where the index.php resides (which is not secure) then the direct link will works fine, but you have to know that the link provided in the file browser when moving the mouse over the "Download" link or over the name of the file is not the required direct link. It works only for Journal Manager. Direct link for embedding in web pages will be something like:
- Code: Select all
http://[your.journal.path]/files/journals/[journal_id]/[sub_folder]/[uploaded_file]
This should works when the files folder is web accessible and is not protected against direct access.
A safer approach may be to use public folder for this purpose. Again the public folder must be web accessible (under your web root where index.php resides). If this is your choice, the Public Folder Browser Plugin at:
http://pkp.sfu.ca/support/forum/viewtopic.php?f=28&t=5947may be used if you do not have direct ftp access to your server.
After uploading the file in the journal public folder again the direct link would be something like this:
- Code: Select all
http://[your.journal.path]/public/journals/[journal_id]/[sub_folder]/[uploaded_file]
for example if you have created a forms folder in the journal public folder and uploaded file1.pdf into that folder, and the journal_id of your journal is 1, then the direct link useful for embedding is:
- Code: Select all
http://[your.journal.path]/public/journals/1/forms/file1.pdf