[Seaside] File Upload
avi at beta4.com
Tue Feb 18 19:43:42 CET 2003
On Tue, 18 Feb 2003, Glenn Swanlund wrote:
> Is there a way in Seaside to upload a file?
Ok, file in the attached changeset and you should be good to go.
It adds a single method to HtmlRenderer, #fileUploadWithCallback:. Note
that this should only be used inside a form that has an enctype of
"multipart/form-data". The callback returns a WAFile, which will respond
to #fileName and #contents.
This also includes an example of its use in the WAUpload class. You can
test it at /seaside/upload.
Let me know how it works for you.
More information about the Seaside