<div>Hi All,</div>
<div>&nbsp;</div>
<div>I have been trying to upload a picture through the&nbsp;onClick callback and where I would usually use:</div>
<div>&nbsp;</div>
<div>&nbsp;html form<br>&nbsp;&nbsp;multipart;<br>&nbsp;&nbsp;with: [</div>
<div>&nbsp;&nbsp; html fileUpload callback: [:f | file := f].<br>&nbsp;&nbsp;&nbsp;html submitButton text: &#39;Load&#39;].</div>
<div>&nbsp;</div>
<div>I have been trying the following&nbsp;as it&nbsp;worked for all the other form elements i.e. input, select etc:</div>
<div>&nbsp;</div>
<div>&nbsp;html form </div>
<div>&nbsp; multipart; </div>
<div>&nbsp; id: &#39;fid&#39;; </div>
<div>&nbsp; with: [ <br>&nbsp;&nbsp; html fileUpload callback: [ :f | file:=&nbsp;f ].<br>&nbsp;&nbsp; html submitButton <br>&nbsp;&nbsp;&nbsp;&nbsp; onClick: (html updater <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; id: &#39;pictureHolder&#39;; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; triggerForm: &#39;fid&#39;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; callback: [ :r | self renderPicture: r ];
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return: false); <br>&nbsp;&nbsp;&nbsp;text: &#39;Save&#39; ]</div>
<div>&nbsp;</div>
<div>But instead of returning&nbsp; &quot;a Seaside.WAFile&quot; it is&nbsp;returning the directory path.</div>
<div>Any ideas?</div>
<div>&nbsp;</div>
<div>Cheers,</div>
<div>&nbsp;</div>
<div>Dirk</div>