Accessing a PDF file in NAS drive using PeopleCode
I want to access a PDF file that was stored in a NAS drive. I have configured the NAS drive path (like \\xxxxx\yyyy\zzzz) in a URL definition and using the ViewAttachment function to display the PDF online. But, as soon as I click the attachment icon (underlying peoplecode of this field has the ViewAttachment function), I am getting error like "An invalid parameter has been passed to the file attachment function. (2,788) . An invalid parameter has been passed to one of the following functions: AddAttachment(), ViewAttachment(), or DeleteAttachment()."
Is there a way I can fetch an attachment from NAS drive and display it in online page ?