Did I answer my own question correctly ;-)
renderUploaderOn: html
html form
multipart;
with:
[ html fileUpload callback: [ :f | self file: f. IBSmLibrary default addFile: (self file)].
html submitButton text: 'Load' ]
International Baccalaureate
Steve Lloyd ICT Technical Analyst - Research Engineer
Peterson House, Malthouse Ave. Cardiff Gate, CARDIFF CF23 8GL, United Kingdom
Tel: +44 2920 547869 | Fax: +44 2920 547779 | Web:
http://www.ibo.org________________________________________
From:
[hidden email] [
[hidden email]] On Behalf Of Steve Lloyd [
[hidden email]]
Sent: 22 June 2009 14:26
To:
[hidden email]
Subject: [Seaside] WAFileLibrary instances
In the case of wanting to upload a file to a FileLibrary in a file upload, is there an approved method of getting at the instance of my WAFileLibrary other than
IBSmLibrary allInstances at: 1
renderUploaderOn: html
html form
multipart;
with:
[ html fileUpload callback: [ :f | self file: f. "IBSmLibrary <mySingleInstance> addFile: (self file)"].
html submitButton text: 'Load' ]
International Baccalaureate
Steve Lloyd ICT Technical Analyst - Research Engineer
Peterson House, Malthouse Ave. Cardiff Gate, CARDIFF CF23 8GL, United Kingdom
Tel: +44 2920 547869 | Fax: +44 2920 547779 | Web:
http://www.ibo.org_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside