[Seaside] Not able to upload [a Seaside.WAFile] through onClick

dirk newbold dirkdirk at gmail.com
Wed Sep 19 21:01:05 UTC 2007

Hi All,

I have been trying to upload a picture through the onClick callback and
where I would usually use:

 html form
  with: [
   html fileUpload callback: [:f | file := f].
   html submitButton text: 'Load'].

I have been trying the following as it worked for all the other form
elements i.e. input, select etc:

 html form
  id: 'fid';
  with: [
   html fileUpload callback: [ :f | file:= f ].
   html submitButton
     onClick: (html updater
       id: 'pictureHolder';
       triggerForm: 'fid';
       callback: [ :r | self renderPicture: r ];
       return: false);
   text: 'Save' ]

But instead of returning  "a Seaside.WAFile" it is returning the directory
Any ideas?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20070919/3aa0b000/attachment.htm

More information about the seaside mailing list