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