Hi,<div><br></div><div>The render methods are meant to generate html. </div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt">
<div><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: small;"><br></span></font></div><div><div>renderContentOn: html</div><div><span style="white-space:pre-wrap">        </span>MyFileLibrary addAllFilesIn:
'./'.</div><div><span style="white-space:pre-wrap">        </span>MyFileLibrary addFileAt: 'test.pdf'.</div><div><span style="white-space:pre-wrap"></span></div></div></div></div></blockquote><div><br></div><div>
<div>These lines add the files all files in the local directory to the file library and specifically test.pdf *each* time the browser requests a page. Instead you only need to a file to the file library once. You can do this programmatically say via the workspace in the your image:</div>
</div><div><br></div><div>MyFileLibrary addFileAt: '<path to file>/test.pdf'.</div><div><br></div><div>or via the web ui, by browsing to /config then selecting files, MyFileLibrary</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><div><div><span style="white-space:pre-wrap">        </span></div><div><span style="white-space:pre-wrap">        </span>html image url: (MyFileLibrary urlOf: #testPdf).</div>
</div></div></div></blockquote><div><br></div><div><br></div><div>You can then render a link to the file by:</div><div><br></div><div>renderContentOn: html</div><div> html anchor url: (MyFileLibrary / #testPdf); with: 'click here to download my pdf'</div>
<div><br></div><div><br></div><div>WAExternalFileLibrary is another option....</div><div><br></div><div>Nick</div></div></div>