[Macpartners] link to file on AFP/SMB volume from Mac
Helen Rose
hrose at MIT.EDU
Wed Mar 29 07:40:21 EST 2006
I have items that I want to make available from a my local fileserver
(which serves via AFP but can also serve via SMB as it runs OS X
server) via the web.
I tried using this HTML code:
<a href="afp://servernamegoeshere.mit.edu/RDFileserver/Computer%
20Support/Computing%20Templates/Contact%20Report%20Templates/contact-
report.pdf">newest contact report template</a>
However, if I'm already connected to the volume, I get an error
message from MacOS telling me that, and the file never views/downloads.
I figured I'd try the same but using an SMB prefix, but Safari
doesn't like that ("Safari can’t open “smb://
servernamegoeshere.mit.edu/RDFileserver/Computer%20Support/Computing%
20Templates/Contact%20Report%20Templates/contact-report.pdf” because
Mac OS X doesn’t recognize Internet addresses starting with “smb:”.").
Firefox does not recognize afp:// as a valid prefix (so much that it
won't display it as a clickable link), and when I use an smb://
prefix, the link becomes clickable, but then I get a nasty dialog box
with some error about smb not being a recognized protocol.
Yes, I realize I could enable web services on my fileserver, but I
don't want to have to do that. AFP works just fine, and I don't want
to add another interface for portscanners to hit me on (and fill up
my logs).
Does anyone have any suggestions for how I can make afp and/or smb
resources available through html?
thanks!
--Helen
More information about the Macpartners
mailing list