<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Marc and Adam,</div><div><br></div><div>Thanks for taking the time to respond.</div><div><br><blockquote type="cite"><div>As Marc noted, standard file IO APIs are incompatible with Ur/Web's transactional model. I'm not a big fan of files, in any context. If you explain what your underlying goal is, then we may be able to suggest good ways to achieve it in Ur/Web.<br></div></blockquote><div><br></div><div>Just as an introductory exercise, I was attempting to modify the upload example to store the uploaded file to disk. Then when requested, users could download the previously uploaded files.</div></div><div><br></div><div><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">You can work around it by remembering what to store in which file and<br>writing to disk at the end at commit time. Anyway for that reason you<br>should think twice about whether files are the right storage if you want<br>to use the filesystem for storing data.</span></blockquote></div><div><br></div><div>Are there any examples of writing to disk at commit time? I'd rather not store files in the database.</div><div><br></div><div>Thanks,</div><div><br></div><div>James Parker</div></body></html>