When a files is attached to a record via upload.pl, the link 'Click here to access online' is broken (uses opac-retrieve-file.pl which is not available in staff client).
Could you please verify if your OPACBaseURL is filled in correctly? The link that upload puts in MARC 856 depends on a working base url.. Secondly, if the file is not marked public, it will not be downloadable via opac-retrieve-file either.
Marcel: it is the same problem with OPACBaseURl and the staff equivalent filled in. catalogue/detail.pl in the staff client uses the staff base URL to link to online resources, eg. http://192.168.2.55:8080/cgi-bin/koha/opac-retrieve-file.pl?id=a57f99e63c861bfdbc9cd63d64cf3352 but opac-retrieve-file.pl is on OPAC side and can't be accessed from the link in the staff client. The file is public, it works fine in OPAC.
(In reply to Mirko Tietgen from comment #2) > Marcel: it is the same problem with OPACBaseURl and the staff equivalent > filled in. > > catalogue/detail.pl in the staff client uses the staff base URL to link to > online resources, eg. > > http://192.168.2.55:8080/cgi-bin/koha/opac-retrieve-file. > pl?id=a57f99e63c861bfdbc9cd63d64cf3352 > > but opac-retrieve-file.pl is on OPAC side and can't be accessed from the > link in the staff client. > > The file is public, it works fine in OPAC. The URL should already contain the OPAC base URL as copied by the plugin. Note that the URL should be okay BEFORE using upload. I am not sure if I interpret your example correctly. But 8080 looks like a port for staff; it should not be in OPACBaseURL. (You did not change it after the upload?) And are you sure this is not a networking configuration problem btw? You are using local ip addresses here..
You are correct. Setting the base URL parameter _before_ uploading fixes my problem. Closing the report, thanks for your help!