WAFileLibrary instances

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

WAFileLibrary instances

Steve Lloyd-3
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
Reply | Threaded
Open this post in threaded view
|

RE: WAFileLibrary instances

Steve Lloyd-3
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